Answer a question

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

Answers

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.

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐