tomcat remote debug

[root@localhost bin]# cat catalina.sh|grep dt
#                   command is executed. The default is "dt_socket".
CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=10125"
    JPDA_TRANSPORT="dt_socke

 

 

1. Set tomecat parameters including starting debug mode, remote socket connection and listening port, etc. Add the following parameters to the front of the catalina.bat file

SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327004386&siteId=291194637