Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is rt.jar debuggable in JDK6?

 
Jiafan Zhou
Ranch Hand
Posts: 193
Fedora Linux Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder if we can view the information like local variables in Eclipse debugger when debugging into JDK?

Thanks,
Jiafan
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Jiafan Zhou
Ranch Hand
Posts: 193
Fedora Linux Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic