I'm experiencing an issue with remote debugging in Ignition Designer using IntelliJ IDEA. The debugger initially connects on port 8001 but disconnects almost immediately, typically within a second. The debug connection only remains open when the JVM argument includes 'suspend=y', but this causes the application to halt until a debugger connects. With 'suspend=n', the port appears to close after the initial loading phase.
Im getting these outputs when running netstat -ano | findstr :8001:
I'm using the following JVM argument for remote debugging:
TCP 127.0.0.1:8001 127.0.0.1:53511 TIME_WAIT 0
TCP 0.0.0.0:8001 0.0.0.0:0 LISTENING 31272
TCP [::]:8001 [::]:0 LISTENING 31272
TCP 0.0.0.0:8001 0.0.0.0:0 LISTENING 31272
TCP [::]:8001 [::]:0 LISTENING 31272
TCP 0.0.0.0:8001 0.0.0.0:0 LISTENING 31272
TCP [::]:8001 [::]:0 LISTENING 31272
TCP 127.0.0.1:8001 127.0.0.1:53623 ESTABLISHED 31272
TCP 127.0.0.1:53623 127.0.0.1:8001 ESTABLISHED 5444
TCP 127.0.0.1:8001 127.0.0.1:53623 TIME_WAIT 0
TCP 127.0.0.1:8001 127.0.0.1:53623 TIME_WAIT 0
These are the jvm arguments:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=:8001
--Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=:8001
The debugger log shows:
-
Successful initial connection:
FINE - #c.i.d.e.DebugProcessImpl - *VM attached -
Debugger enters RUNNING state:
FINE - #c.i.d.i.DebuggerSession - DebuggerSession state = RUNNING, event = ATTACHED -
Almost immediately after, the debugger detaches and disposes of the session:
FINE - #c.i.d.i.DebuggerSession - DebuggerSession state = STOPPED, event = DETACHED
FINE - #c.i.d.i.DebuggerSession - DebuggerSession state = DISPOSED, event = DISPOSE
Any insights or suggestions would be greatly appreciated. Thank you in advance for your help!