tomcat和Springboot 远程debug调试配置

在apache-tomcat/bin/catalina.sh开始提添加下面代码

CATALINA_OPTS=”-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n”

Springboot在启动命令添加

-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=10060,suspend=n

服务器要开发上述端口访问