默认的tomcat貌似没有开启,需要在起送的参数中加入端口号,这样eclipse或者idea这类ide工具就可以通过远程debug调试程序了

 

具体做法:

在catalina.bat文件中的开头加入(我是加在开头,不是一定)

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


红色部分为debug的端口,ide中连接这个端口即可

相关文章:

  • 2021-09-11
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-11-25
相关资源
相似解决方案