eclipse 在eclipse中调试Liferay时去除java异常断点
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11531925/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Remove java exception breakpoints when debugging Liferay in eclipse
提问by Mark
By debugging of Liferay Portal, that is tomcat application, eclipse make usual stop at ThreadPoolExecutor$Worker.run() line: 912
although I don't set a breakpoint at this class. The ThreadPoolExecutor
isn't a class of my application, I think that belongs to tomcat. My Question is: what is wrong here, and why eclipse stopt here?
And is it possible to set such "external breakpoints" in eclipse to ignore?
通过调试Liferay Portal,即tomcat应用程序,eclipseThreadPoolExecutor$Worker.run() line: 912
虽然我没有在这个类设置断点,但通常会停止。这ThreadPoolExecutor
不是我的应用程序的一个类,我认为它属于 tomcat。我的问题是:这里有什么问题,为什么 Eclipse 停在这里?是否有可能在 eclipse 中设置这样的“外部断点”来忽略?
回答by gamerson
You can fix this immediately by opening the Markers view and delete the Java Exception Breakpoints.
您可以通过打开 Markers 视图并删除 Java Exception Breakpoints 来立即修复此问题。
However, to permanently remove this type of breakpoints, you have to go to the Java Debug options and uncheck the "Suspend excecution on uncaught exceptions" option. Then this type of breakpoints won't get added again in the future.
但是,要永久删除此类断点,您必须转到 Java 调试选项并取消选中“在未捕获的异常上暂停执行”选项。这样以后就不会再添加这种类型的断点了。