> hi..
>
[quoted text clipped - 3 lines]
> simply continues to the end without stopping on any breakpoints when i
> start eclipse debug.
off course here it is:
java -classpath RemoteExample.jar -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-Djava.compiler=NONE
com.ibm.jdg2e.usingjdt.remotedebugging.RemoteDebuggingExample 20
taken right out of Eclipse Developer Guide.
> Of course, you realize that in order to be remotely debugged, your JVM must
> be instrumented by setting certain parameters in the command line.
[quoted text clipped - 9 lines]
> > simply continues to the end without stopping on any breakpoints when i
> > start eclipse debug.
Alex Molochnikov - 28 Mar 2005 23:17 GMT
Have you tried setting suspend=n? If this is a GUI-based program, and the
break is located in the main event loop, this should not be a problem. If
your program is a headless start-and-end process, you may want to put in a
delayer loop, like
try { Thread.currentThread().sleep(10000); }
catch (Exception e) {}
early in the program, which should give you enough time to connect the
debugger to it.
For the background Java processes, I use this approach, and it always worked
for me.
> off course here it is:
> java -classpath RemoteExample.jar -Xdebug -Xnoagent
[quoted text clipped - 21 lines]
> when i
> > > start eclipse debug.
Elhanan - 29 Mar 2005 06:55 GMT
well i tried using suspend=n but it simply runs to program from that to
finish not waiting for the debugger (as opposed to before when it
waited for the debugger but when i started ecplise it released it)
it's not a gui program but just a simply console one, it seems that the
breakpoints themselves don't work in remote debugging.
Alex Molochnikov - 29 Mar 2005 09:11 GMT
Just to be sure, in the Debug panel, you have:
selected the Remote Java Application (in the left frame);
in the right frame, set the project name, and the correct connection
properties (e.g. localhost, port 8000);
in the Source tab (also in the right frame), set the correct source path.
If all of the above settings are in place, the debug should stop at the
breakpoints. If it still does not, you may want to take your inquiry to the
Eclipse forum.
> well i tried using suspend=n but it simply runs to program from that to
> finish not waiting for the debugger (as opposed to before when it
> waited for the debugger but when i started ecplise it released it)
>
> it's not a gui program but just a simply console one, it seems that the
> breakpoints themselves don't work in remote debugging.