score:1

By the nature of the client mode debugging, you will possibly relaunch eclipse in debug mode (listen) manually because you will do the same with the client application (attaching it to the eclipse listening port using jdwp).

But you also can try create a launch configuration programatically using Eclipse SDK, implementing an algorithm to restart the "listen mode" when the vm exists.

score:1

Just a thought , Can you try using:

-Xrunjdwp:transport=dt_socket,server=y,**suspend=y**

Your application will be suspended till the time the debugger is attached, that way you would atleast be able to debug right from the entry point to your code.


Related Query

More Query from same tag