[IDEA PLUGIN][ GenericDebuggerRunner ] How to Attach debuger with delay - after process have initialized

Hello all.

I have a RUN plugin that extends GenericDebuggerRunner.

The problem i have is that my application debug port gets exposed only after about 10 about seconds due to some internal routines.

Meanwhile the Debug session is already open and showing "connnecting to the targer VM, address: ...", transport: socket.

So I get a deadlock, where both the debugger and processes are waiting for connection, but never establish it.


Is there a way to delay the debugger start after the application had started ?

I've checked attachVirtualMachine and creation of XDebuggerManager, but either seems to help with my issue.

Thank you.

Please sign in to leave a comment.