其他分享
首页 > 其他分享> > Tomcat设置远程debug

Tomcat设置远程debug

作者:互联网

1、windows环境下tomcat的bin目录下catalina.bat中加入: 

  set CATALINA_OPTS=-Xdebug -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000

 

 

 

 2.linux环境下catalina.sh中加入: 

  CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"

 

标签:catalina,Tomcat,suspend,CATALINA,Xdebug,OPTS,debug,远程,transport
来源: https://www.cnblogs.com/xychao/p/15632249.html