<p>I'm trying to debug a Java application in Kubernetes using a Cloud Code plugin.
There is no trouble with the default debug.
I just click <strong>debug</strong> and it works, but... I don't know how to connect to application on the start.</p>
<p>I've tried to add option -<code>agentlib:jdwp=transport=dt_socket,server=n,suspend=**y**,address=,quiet=y</code>
but JVM crushed because Cloud Code adds its own option <strong>agentlib</strong> and JVM can't handle two options with the same name.</p>
<p>How can I edit the <code>agentlib</code> option for Cloud Code? (to add <strong>suspend=y</strong>) or maybe disable that option.</p>
<p>Or maybe there is another way to debug the application while it starts?</p>

Alexander Kazantsev
<p>I've tried to add agentlib option to <strong>JDK_JAVA_OPTIONS</strong>, but scaffold(library inside cloud plugin) try to find agentlib in <a href="https://github.com/GoogleContainerTools/skaffold/blob/c75c55133e709b2fee906eb158be13c7ccfa72cd/pkg/skaffold/debug/transform_jvm.go#L75" rel="nofollow noreferrer">JAVA_TOOL_OPTIONS</a></p>
<p>I've put the option in the right place and it works well</p>
