Debugging into java system classes [message #157407] |
Thu, 06 May 2004 01:44 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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
|
|
|
Re: Debugging into java system classes [message #157843 is a reply to message #157407] |
Sat, 08 May 2004 11:52 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: p.beauvoir.bolton.ac.uk
What about creating a new class called MyHashMap and copying and pasting the
original Java Hashmap code into that and using that class instead for
debugging? Would that work?
PB
"Pito Salas" <newsgroup@salas.com> wrote in message
news:c7c4t6$n87$1@eclipse.org...
> 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
>
>
|
|
|
Re: Debugging into java system classes [message #157874 is a reply to message #157843] |
Sat, 08 May 2004 16:30 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: newsgroup.salas.com
No, because HashMap is being called in the bowels of Hibernate and I am
calling Hibernate.
From another list someone suggested that what I did would have worked if I
changed the bootclasspath. I had never heard of that. Can you change that in
eclipse?
- Pito
"Phillip Beauvoir" <p.beauvoir@bolton.ac.uk> wrote in message
news:c7iha1$ihk$1@eclipse.org...
> What about creating a new class called MyHashMap and copying and pasting
the
> original Java Hashmap code into that and using that class instead for
> debugging? Would that work?
>
> PB
>
>
> "Pito Salas" <newsgroup@salas.com> wrote in message
> news:c7c4t6$n87$1@eclipse.org...
> > 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 13:29 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.03850 seconds