How to remote debug with Eclipse

1. 配置Tomcat支持remote debugging

给JVM加上如下的启动参数:

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

2. Eclipse 里新建一个Remote Java Applications的debug

“Run->Debug …”, then “Remote Java Applications”, “New”,port添8000。

你可能感兴趣的:(java,eclipse,jvm,tomcat,socket)