How can I make Eclipse to break on ALL uncaught exceptions?

。_饼干妹妹 提交于 2019-12-03 23:04:38

Finally I found it!

I had to explicitly set subclasses of this exception checkbox for each exception in Breakpoints pane.

Also, I need to set NullPointerException's caught locations too or even uncaught exceptions won't be caught.

You need to Go to Breakpoints view > Add Java Exception Breakpoint then search for Throwable it will come up with java.lang.Throwable. Add java.lang.Throwable and check Subclasses of this exception just as @Eonil did.

  1. Window->Show View->Other

  2. Search for breakpoints which appears Debug->Breakpoints

  3. Now add Throwable Exception by pressing J! icon

  4. Add Exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!