tomcat远程调试
1.编辑catalina.sh文件,增加JPDA_ADDRESS=8101
/root/apache-tomcat-8.5.3/bin/catalina.sh
2.启动
./bin/catalina.sh jpda start
3.Intellij IDEA中添加remote,
配置 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8101
设置 host
设置port
--------------------------------------------------------
springboot项目远程调试
服务端启动参数
java -jar -Djava.security.egd=file:/dev/./urandom -Xdebug -Xrunjdwp:transport=dt_socket,address=8080,server=y,suspend=n -Dspring.profiles.active=test Secret-1.0-SNAPSHOT.jar
Intellij IDEA配置remote设置,同上