Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Breakpoints in JRE System Library in Eclipse

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 number attributes. Modify compiler options to generate line number attributes." So what should I do: recompile JRE System Library from sources with debug information and use it? Or there is some more simple way?

like image 383
Lampapos Avatar asked Nov 14 '22 18:11

Lampapos


1 Answers

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.

like image 57
Lampapos Avatar answered Dec 09 '22 13:12

Lampapos