Tomcat 远程DEBUG设置
远程DEBUG,Tomcat设置
linux环境下:
修改${TOMCAT_HOME}\bin\catalina.sh文件,添加到JAVA_OPTS下面一行:
JAVA_OPTS="$JAVA_OPTS -server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
Windows下:
set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n