Skip to content

Tag: jdwp

Is it possible to start java jdwp after JVM startup (aka: at runtime) without command line parameters?

I would like to enable debugging at some point on the current JVM without adding the command line parameters -agentlib:jdwp. Is it possible to do so programmatically from within the current running JVM ? Without any third party libraries ? Other command line parameters (such as -Djdk.attach.allowAttachSelf=true) can be considered. causes : Answer In modern JVM (Java 6+) the agents