Java – how to prevent eclipse from breaking on each exception caught when running in debugging
When I started debugging a java project, eclipse continued to break random exceptions in third-party libraries, which was annoying
I tried clicking (!) on the breakpoints view Icon, I can see that the "suspend captured exceptions" and "suspend uncapped exceptions" check boxes are not checked Eclipse will still be disconnected in the event of an exception
Although I'm not sure if I use this window correctly, do I want to select exceptions one by one? Or is there a way to specify all exceptions?
Cordial greetings
Solution
You use "!" The icon in the breakpoints view is the exception you want to stop If you put "NullPointerException" in it and tell eclipse to stop "caught and uncaught", your execution will stop on each NullPointerException thrown Are you sure you have not set a breakpoint on each "random exception" where execution stops?