Idea 远程调试Tomcat

Idea 配置

创建remote

Idea配置

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

Tomcat配置

Tomcat配置

Tomcat配置

export JAVA_OPTS='-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005'

Jpda 启动Tomcat

重启tomcat服务,使用./catalina.sh jpda start命令,以jpda的方式启动tomcat服务

你可能感兴趣的:(Idea 远程调试Tomcat)