How to set a breakpoint in Eclipse in a third party library?

前端 未结 6 1703
无人及你
无人及你 2020-12-01 00:08

I\'m getting a NullPointerException in a Class from a 3rd party library. Now I\'d like to debug the whole thing and I would need to know from which object the class is held.

6条回答
  •  悲&欢浪女
    2020-12-01 00:36

    You can also set breakpoints on specific exceptions. From the Debug perspective, there's a button "Add Java Exception Breakpoint", and there you can add "NullPointerException". Your debugger will then suspend execution as soon as such an exception is raised.

提交回复
热议问题