远程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、端口写第一步里的端口