跳过断点,因为它发生在调试器评估内-Intellij IDEA [英] Skipped breakpoint because it happened inside debugger evaluation - Intellij IDEA
问题描述
当我尝试在项目的任何方法的任何执行行上选择一个断点时,并且知道该方法应被调用4次,Intellij会跳过此断点3次,仅在上一次调用时停止。
方法示例(端点类):
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;
}
在方法的第一行选择断点。程序停止后,控制台中已经打印了三行**************************** INVOCATION ******** *******************
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:
在%code reference%处跳过断点,因为它发生在调试器评估中
但是我不执行调试时,请不要使用任何评估表达式功能。
还有我的运行/调试配置的VM选项:
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
推荐答案
此问题在 IDEA-43728 和断点文档。
简而言之,为避免出现这种情况,请使用暂停线程(不是全部)断点策略。
In short, to avoid it use suspend thread (not all) breakpoint policy.
这篇关于跳过断点,因为它发生在调试器评估内-Intellij IDEA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!