spring boot / tomcat 远程调试.
spring boot 允许远程调试
nohup java -Dspring.profiles.active=dev -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5085 -jar abcdef.jar > nohup.out &
- 可以参考 https://www.baeldung.com/spring-debugging
tomcat 允许远程调试
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5085