File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is rt.jar debuggable in JDK6?" Watch "Is rt.jar debuggable in JDK6?" New topic
Author

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?

Thanks,
Jiafan


SCJP, SCJD, SCWCD, SCBCD, SCEA
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1666
    
    7

You can if you add the src.zip 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?

Regards,
Jiafan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is rt.jar debuggable in JDK6?
 
Similar Threads
Remote debugging problem in eclipse
Combining fields from 2 resultsets in 1 vector
jdb Is this the only one?
Debugging in JCreater
IE Debugger Tool