Re: Debugging Remote Applications



Christian wrote:

Hello

I am often programming jse applications that I can only test in large
numbers.. so I use a small cluster of computers as testenviroment..

Now I often find myself in the bad situation that debugging only works
by viewing logfiles..

But is there any chance for me with java to get a debugging view like in
eclipse for local apps also for a remote application.. with
breakpoints/breakpoints on exceptions and introspecting the state of
the objects ?

Christian
You have start the Java process (the one to be debugged) with some more
options. Instead of starting it with
java ...
you have to start it with
java -Xdebug -Xnoagent -Djava.compiler=NONE \
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=12345 ....
This will start your Java process as usual, but the JVM will also listen for
a debugger connection on port 12345.

In Eclipse you have to create a Debug configuration ("Remote Java
application") with the host name and the debug port number ("12345" from
the example above).
Later, when you want to debug the already running Java process, you have to
launch this Debug configuration.

You may also want to google for "Java remote debugging".

--
Thomas
.



Relevant Pages

  • Eclipse debugging hanging, causing network problems
    ... and last time I used Java heavily was six years ... I could install and run Eclipse well, but debugging gives a problem; ... but gets stuck at launching stage. ... Strangely, after this happens, I get other network problems as well - ...
    (comp.lang.java.softwaretools)
  • Re: Dump complete java VM state as core dump (not via OS) possible?
    ... VMs and reconstruct some of the java object state information. ... I also used these very frequently until I had some strange debugging ... 1: Very rare time race condition: There was no possibility to reproduce ... Now it was a deadlock problem, which is also impossible to debug with ...
    (comp.lang.java.programmer)
  • Re: How many users of Octave and Scilab are there?
    ... I use Scilab all the time. ... I stopped using Simulink the second time I had a big simulation break ... The debugging has gotten miles better in recent versions, ... I didn't notice the migration to Java. ...
    (sci.engr.control)
  • [ANN] Back-in-time debugging with CodeGuide 7
    ... We have just released version 7 of our Java IDE CodeGuide. ... debugging metaphors. ...
    (comp.lang.java.softwaretools)
  • [ANN] Back-in-time debugging with CodeGuide 7
    ... We have just released version 7 of our Java IDE CodeGuide. ... debugging metaphors. ...
    (comp.lang.java.programmer)