Tomcat9 idea 开启远程调试

tomcat9 设置

把 export JPDA_ADDRESS=0.0.0.0:9401添加到tomcat/bin/setevn.sh中
注:tomcat9 为linux 版

idea 设置

1、新增remote tomcat如下图:
Tomcat9 idea 开启远程调试2、配置remote tomcat 如下图:
配置远程host和port (与setevn.sh中的端口一致)
Tomcat9 idea 开启远程调试设置startup 中的debug 的port (与setevn.sh中的端口一致)
Tomcat9 idea 开启远程调试

启动tomcat 9

sh catalina.sh jpda start

启动idea debug

先启动tomcat 9后,再启动idea 中的debug,期间会有连接不上的情况(tomcat9 还没有加载好),多试几次就好

相关文章:

  • 2021-05-19
  • 2021-05-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
猜你喜欢
  • 2021-09-08
  • 2021-06-11
  • 2021-05-02
  • 2021-07-20
  • 2021-06-30
相关资源
相似解决方案