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

前端 未结 3 1173
失恋的感觉
失恋的感觉 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 00:57

    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.

    enter image description here

提交回复
热议问题