tomcat开启远程调试

tomcat远程调试

1.Linxu系统: apach/bin/startup.sh开始处中增加如下内容:

declare -x CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8788"   

2.Windows系统: apach/bin/startup.bat开始处中增加如下内容: 

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

 

posted @ 2019-10-17 13:02  苗士军  阅读(900)  评论(0编辑  收藏  举报