how to remote debugging a "future" process

Some of my testcases have to spawn, crash and restart another process
(another JVM running java code).
when I need to debug the controlled process, I can use my testcode to
launch it with the JPDA remote option, but unfortunately I have either to
- launch with suspend option and manually react by launching the
debugger to attach to it

OR

- launch without suspend and keep trying to launch the debugger to
attach to the spawned process

what I'd really need is for the debugger to 'poll' for the debugged
process to be there and attach on success.

Ideally, even if the debugged jvm crashes, the debugger should restart
polling to attach to a new instance of the process.

any ideas on how to do this ?

Edo

1 comment
Comment actions Permalink

I have submitted a request in the Tracker
'need 'polling' option for remote debugger to attach to process'
http://www.intellij.net/tracker/idea/viewSCR?publicId=15064

Edo

Edoardo Comar wrote:

Some of my testcases have to spawn, crash and restart another process
(another JVM running java code).
when I need to debug the controlled process, I can use my testcode to
launch it with the JPDA remote option, but unfortunately I have either to
- launch with suspend option and manually react by launching the
debugger to attach to it

OR

- launch without suspend and keep trying to launch the debugger to
attach to the spawned process

what I'd really need is for the debugger to 'poll' for the debugged
process to be there and attach on success.

Ideally, even if the debugged jvm crashes, the debugger should restart
polling to attach to a new instance of the process.

any ideas on how to do this ?

Edo


0

Please sign in to leave a comment.