Debugging through Java sources

R

rico

Tracing program execution through the java sources, using j2sdk1.4.1.
The IDE is Eclipse. Why is it that within my own code I can observe the
values of local variables and fields but Eclipse doesn't display those
when stepping through the Java sources part,
e.g within ObjectOutputStream.writeObject( )... Is it an Eclipse issue?
Java issue? Thanks for any help.

Rico.
 
R

Reinaerde

this shouldn't be a problem to set up. Are you getting the class description
only for debugging?
If this is the case you have to attach the sources to the classes first
before you can debug.
In the variables view of the debug perspective you should definatelly see
the values.

Regards,

Rein
 
R

rico

Reinaerde said:
this shouldn't be a problem to set up. Are you getting the class description
only for debugging?
If this is the case you have to attach the sources to the classes first
before you can debug.
In the variables view of the debug perspective you should definatelly see
the values.

Regards,
Rein

Hello Rein,
Thanks for the suggestion. Eclipse detected everything automatically
after I installed the complete j2sdk. It extracts the sources from src.zip
I believe.. So, I'm thinking any attaching of sources that's required is
already done?

Yet, inside java.io_ObjectOutputStream:

private void writeObject0(Object obj, boolean unshared)
throws IOException
{
boolean oldMode = bout.setBlockDataMode(false);
depth++;

neither 'oldMode' nor 'depth' are anywhere to be displayed in the
variables view of the debug perspective... Some other variables are,
all with a red square next to them. I'm not clear about what's going
on yet...

Rico.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top