-
Bug
-
Resolution: Won't Do
-
Medium
-
Guilin Release
-
None
Remote debugging does not work with Java 11
Previously to attach a remote debugger, we could specify JVM arguments such as this:
-agentlib:jdwp=transport=dt_socket,*address=*8787,server=y,suspend=n
However, this does not allow connecting to the VM with a remote debugger. To allow this, we need to slightly adjust the address property to be this:
-agentlib:jdwp=transport=dt_socket,address=:*8787,server=y,suspend=n
Unfortunately, the *: syntax is not backwards compatible to Java 7/8, but if we specify the hostname instead of * then it does work on all JDKs.
Reference: https://github.com/OpenLiberty/open-liberty/issues/7833