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

前端 未结 3 1237
失恋的感觉
失恋的感觉 2021-02-19 00:25

I am writing a Java program using Eclipse Juno.

When I run the program, and it meets an exception, program just dies with back trace. I set these exception breakpoint to

3条回答
  •  名媛妹妹
    2021-02-19 01:02

    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.

    enter image description here

提交回复
热议问题