Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skipped breakpoint because it happened inside debugger evaluation - Intellij IDEA

When I try to pick a breakpoint on any executive line of any method of my project, and I know that this method should be invoked for example 4 times, Intellij skips this breakpoint for 3 times and stops only on the last invocation. Method example (Endpoint class):

    @PayloadRoot(localPart = "getRelatedCIs", namespace = "http://www.projectname.com/ws") public GetRelatedCIsResponse getRelatedCIs(GetRelatedCIs request) throws DataAccessException, WebServiceException {     GetRelatedCIsResponse response = new GetRelatedCIsResponse();     PageData page = request.getPageData();     List<ConfigItemReference> ciRefs = translateCiRefList(request.getCiRef());     RelatedCiResult relatedCis = configItemService.getRelatedCis(ciRefs, request.getRequestedType(),             new Page(page.getPageNumber(), page.getPageSize(), page.getTotal()), request.getSort());     response.getCis().addAll(relatedCis.getCis());     page.setTotal(relatedCis.getPageInfo().getTotal());     page.setPageSize(relatedCis.getPageInfo().getPageSize());     response.setPageData(page);     System.out.println("****************************INVOCATION***************************" + request.getRequestedType());     return response; } 

Breakpoint is picked on the first line of the method. When program is stopped, there are already printed in console 3 lines ****************************INVOCATION***************************

In the left bottom part of the screen appears green notification:

Skipped breakpoint at %code reference% because it happened inside debugger evaluation

But I don't use any Evaluate Expression functionality when I perform debugging. Also there are my VM options of Run/Debug Configurations:

-XX:MaxPermSize=512m  -Xms256m  -Xmx1024m  -Dcom.sun.management.jmxremote=true  -Dcom.sun.management.jmxremote.port=9004  -Dcom.sun.management.jmxremote.authenticate=false  -Dcom.sun.management.jmxremote.ssl=false 
like image 495
Roman Khomyshynets Avatar asked Dec 18 '17 10:12

Roman Khomyshynets


People also ask

How do I skip a breakpoint in IntelliJ?

Ctrl + F8 (Mac: Cmd + F8) Toggle breakpoint.

How do I evaluate a debugger in IntelliJ?

Evaluate a complex expression in the editorClick Run | Debugging Actions | Quick Evaluate Expression Ctrl+Alt+F8 .

How do I get out of debug mode in IntelliJ?

Terminate a debugger sessionClick the Stop button in the Debug tool window. Alternatively, press Ctrl+F2 and select the process to terminate (if there are two or more of them).

Why my debugger is not working in IntelliJ?

To solve this, simply remove the jar of the debugged module from all modules' dependencies in the Project Structure. If you do not know which modules have the debugged module jar as dependencies, you can use some tools (Eg. Sublime Text, bash, ...) to search for the module name which is stored in Intellij *.


2 Answers

The problem is described in IDEA-43728 and in the breakpoints documentation.

In short, to avoid it use suspend thread (not all) breakpoint policy.

like image 110
Egor Avatar answered Oct 03 '22 13:10

Egor


try disable the 'toString()' object view enter image description here

like image 35
hedleyyan Avatar answered Oct 03 '22 14:10

hedleyyan