Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove java exception breakpoints when debugging Liferay in eclipse

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?

enter image description here

like image 805
Mark Avatar asked Jul 17 '12 22:07

Mark


People also ask

How do I fix Java exception breakpoint in Eclipse?

To define a breakpoint in your source code, right-click in the left margin in the Java editor and select Toggle Breakpoint. Alternatively, you can double-click on this position. The Breakpoints view allows you to delete and deactivate Breakpoints and modify their properties.


1 Answers

You can fix this immediately by opening the Markers view and delete the Java Exception Breakpoints.

Markers view with 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 Debug options in Eclipse

like image 150
gamerson Avatar answered Sep 19 '22 06:09

gamerson