SpringBoot 远程调试

java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n  -jar target/myapplication-0.0.1-SNAPSHOT.jar

注意suspend=n, 然后在IDEA中, Edit Configuration, 新建一个Remote类型, 添加主机地址和端口号, 在本地代码中打断点, 选中Remote类型的Configuration, 点击Debug。

原文地址:https://www.cnblogs.com/helloz/p/10161865.html