Skip to content
Advertisement

Tag: remote-debugging

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

Docker and jre 11 in Debug mode

I was trying to get a remote debug session running on my docker container. Actually the debug session always gets blocked by an IOException.. Dockerfile Entrypoint: Any ideas, whats wrong with this? Answer since java 9 you have to specify your adapter, or simply use an escaper for the debug host as such: great documentation in openjdk btw..

Advertisement