<p>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 )  . </p>

<p>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 .</p>

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

Omer Ben Amram
<p>You can try using <em>Suspend policy: Thread</em> when debugging. As per <a href="https://www.jetbrains.com/help/idea/using-breakpoints.html#breakpoint-properties" rel="nofollow noreferrer">Breakpoint properties</a> docs:</p>

<blockquote>
  <p>Thread: only the thread containing this breakpoint will be suspended. </p>
</blockquote>

<p>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.</p>
