远程Dbug调试:
TOMCAT配置(只需设置一次):
1、在服务器的$TOMCAT_HOME/bin/catalina.sh中增加:
CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8899"
2、重启TOMCAT