Debugging into java system classes [message #157407] |
Wed, 05 May 2004 21:44  |
Eclipse User |
|
|
|
Originally posted by: newsgroup.salas.com
I've searched high and low for a solution to this problem:
In order to debug a hairy problem, I need to step into some Java system
classes (hashmap.java) HashMap.class is to be found in rt.jar, part of the
standard Java distribution (1.4.2_04) but it does NOT have debug info
compiled in.
So what to do? I think I did a pretty exhaustive set of steps but I am still
stumped:
- I can't locate an rt.jar with debug info
- From what I read, you can't easily rebuild it from the java system sources
because some stuff does not compile
- I tried recompiling hashmap.java with -g to get debug info and putting the
resulting .class files into a .jar and placing that jar at what I believe is
the front of the classpath. I did this in Eclipse by adding it as a library
in the project properties, and then moving it "up" to the front. Didn't seem
to do it.
- I tried taking the same built .jar file and putting into the jre spec in
Eclipse, at the top, and that didn't do the trick either
Anyone have any ideas? THis would be greatly appreciated...
- Pito
|
|
|
|
|
Antwort: Re: Debugging into java system classes [message #158231 is a reply to message #157874] |
Tue, 11 May 2004 09:29  |
Eclipse User |
|
|
|
Originally posted by: nospam.xxx.de
Hi Pito,
a simple approach which has worked for me
- create a project called newruntime
- import the classes.zip from the jdk
some errors will arise but they may be in packages you don't rely on
(apache, etc.)
- let Eclipse build a new rtNew.jar
- substitute the rt.jar by rtNew.jar for debug tests
HTH
Wolfgang R.
|
|
|
Powered by
FUDForum. Page generated in 0.03623 seconds