Java Remote Debugging
-xdebug-xnoagent-djava.compiler=none-xrunjdwp:transport=dt_socket,server=y,address=5005, suspend=n
Description
-xdebug enable debugging.
-xnoagent disables the default Sun.tools.debug debugger. If you disable the agent, you can not use the attach way to connect debugging remotely, so this option is generally not used.
-djava.compiler=none suppresses the loading of the JIT compiler.
-XRUNJDWP loads the JDWP JPDA reference execution instance.
Transport is used to communicate between the debugger and the process used by the VM.
Dt_socket socket transmission.
Dt_shmem shared memory transfers are limited to Windows.
server=y/n whether the VM needs to be executed as a debug server.
address=3999 the port number of the debug server that the client uses to connect to the server.
suspend=y/n whether to start the VM after the debugging client establishes a connection.
Java: Remote Debug