Breakpoints in JRE System Library in Eclipse

后端 未结 3 1943
被撕碎了的回忆
被撕碎了的回忆 2021-01-19 01:18

I tried to make breakpoint in the class from JRE System Library, but when I started debug I recieved message: \"Unable to install breakpoint at ... due to missing line numbe

相关标签:
3条回答
  • 2021-01-19 01:29

    You just have to enable some compiler options. Right click your project and select Properties. Go to Java Compiler and enable the checkboxes Add line number to generated class files (used by the debugger) and the other ones.

    0 讨论(0)
  • 2021-01-19 01:51

    The simplest thing to do is get the equivalent JDK and target that instead.

    0 讨论(0)
  • 2021-01-19 01:52

    So, the most simple way - to use JDK instead of JRE. In this case we can use breakpoints in system library. BUT we cant monitor values of local variables. For this purpose we should recompile rt.jar (without sun.* packets, because they are proprietary). Process of recompilation described there. It's in russian, but at the and of article situated the link to the result rt-dbg.jar.

    0 讨论(0)
提交回复
热议问题