远程debug步骤:

1、vi /usr/local/sa/tomcat-ui/bin/catalina.sh 最顶上加export JPDA_ADDRESS=12345

2、vi /usr/local/sa/tomcat-ui/bin/startup.sh 最下面exec "$PRGDIR"/"$EXECUTABLE" tart "$@"改成exec "$PRGDIR"/"$EXECUTABLE" jpda start "$@"

3、重启应用

4、在eclipse中项目右键,Debug Configurations--Remote Java Application

5、host写远程ip
6、端口写第一步里的端口

 

相关文章:

  • 2021-04-17
  • 2021-07-19
  • 2021-11-03
  • 2021-07-30
  • 2021-07-25
  • 2021-07-08
  • 2021-11-25
  • 2021-07-30
猜你喜欢
  • 2021-10-28
  • 2021-12-06
  • 2021-12-06
  • 2021-12-06
  • 2022-02-16
  • 2021-09-24
相关资源
相似解决方案