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
- 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 ?