Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Beginning Java and the fly likes Is rt.jar debuggable in JDK6? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is rt.jar debuggable in JDK6?" Watch "Is rt.jar debuggable in JDK6?" New topic

Is rt.jar debuggable in JDK6?

Jiafan Zhou
Ranch Hand

Joined: Sep 28, 2005
Posts: 192

I wonder if we can view the information like local variables in Eclipse debugger when debugging into JDK?


Jelle Klap

Joined: Mar 10, 2008
Posts: 1753

You can if you add the file located in the JDK home directory as the source attachement for the rt.jar of the configured project JRE in Eclipse.

Edit: nope doesn't work ofcourse, my mistake.
[ April 10, 2008: Message edited by: Jelle Klap ]

Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Jiafan Zhou
Ranch Hand

Joined: Sep 28, 2005
Posts: 192

I even wrote an ant task to rebuild the JDK into a new jar with the debug flag set to true. And include it into Eclipse's jar classpath and remove the existing JRE library. However I am still not able to view local variables using this new jar. I wonder if I am doing anything wrong here.

So any suggestions for those want to debug JDK?

Consider Paul's rocket mass heater.
subject: Is rt.jar debuggable in JDK6?
Similar Threads
Debugging in JCreater
Remote debugging problem in eclipse
jdb Is this the only one?
Combining fields from 2 resultsets in 1 vector
IE Debugger Tool