On 22 May 2001 15:48:11 -0400, Jeff Rancier wrote:
> Hello All:
> 
> I can debug through the JDK source fine, but what if I want to set a
> breakpoint on a line in the JDK source?  E.g. I put a breakpoint on the
> following:
> 
> socket = new Socket( hostAddress, hostPort.intValue() );
> 
> in my code, how do I set a breakpoint in Socket.java?  Do I need to pull it
> local to my project?

You probably can't, for two reasons:

1) Sun doesn't compile the Java core classes with -g, which JPDA needs
to see breakpoints.
2) You can't compile the Java sources in src.jar and get rt.jar, since
there are all kinds of native classes and code to deal with the
low-level stuff. 

Of course, I would *love* to be proved wrong here, but until then this
is another great reason to support Classpath. :)

Reply via email to