Java remote debugging is implemented using the JDWP Protocol. To perform remote debugging, you must add a parameter that supports the JDWP protocol before starting the java program:-Xdebug-Xrunjdwp: transportdt_socket, address8787, servery, suspendn if JDK5 is later, you can use another parameter method:-agentlib: jdwptrans
Java remote debugging is implemented using the JDWP Protocol. To perform remote debugging, you must add a parameter that supports the JDWP protocol before starting the java program:
- -Xdebug-Xrunjdwp:TrAnsport = dt_socket,DdRess = 8787, server = y,SuSpend = n
If JDK 5 is later, you can use another parameter method:
- -Agentlib: jdwp = transport = dt_socket, address = 8787, server = y, suspend = n
Then, in the client that supports this protocol, such as eclipse, bind the port 8787 to go to debugging.
IfMcAt, jboss, weblogic, and other servers for remote debugging, you only needCatThe Startup File catalina. bat and jboss may run. bat) is added to the above Code. After the server is started, remote debugging can be performed.