1、Linux上

1)、在catalina.sh文件中加入语句:CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5888" 

2)、重启tomcat

3)查看监听端口号:netstat -an | grep 5888,下图说明监听端口已经启动

tomcat 远程调试

4)、eclipse 配置远程调试

tomcat 远程调试

 tomcat 远程调试

5)、点击debug,如果如下图展示,说明debug成功

tomcat 远程调试

相关文章:

  • 2021-11-26
  • 2021-10-16
猜你喜欢
  • 2021-11-26
  • 2021-11-26
  • 2021-05-17
  • 2021-10-20
相关资源
相似解决方案