4
votes

when i'm connecting to remote-debug port to a pod (openshift) using intellij how can i prevent from the pod to crash and the debug session to stop and keep the debug alive ? ( like in eclipse ) .

this is a pod running under openshift platform . when connecting to remote debug withe the same configuration and same port using eclipse the debug session is not terminating and the pod is not crashing .

the command line arguments : -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=45288 Debugger mode : Attach to remote VM

1
How is it crashing? - NeplatnyUdaj
the pod is not responding for couple of minutes and the debug session is stopped and released . @NeplatnyUdaj - Omer Ben Amram
I'd recommend to create a support ticket for Intellij team: intellij-support.jetbrains.com/hc/en-us/?intellij-idea with the idea.log (Help | Show Log in Explorer) and thread dumps attached: intellij-support.jetbrains.com/hc/en-us/articles/… . - Kootli

1 Answers

2
votes

You can try using Suspend policy: Thread when debugging. As per Breakpoint properties docs:

Thread: only the thread containing this breakpoint will be suspended.

This approach is far from ideal. If you are debugging a multi-threaded application other threads will continue to run and potentially interfere with your debugging session. However it might allow the pod to pass the liveness test.