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
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.
The simplest thing to do is get the equivalent JDK and target that instead.
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.