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。
How to remote debug with Eclipse
最新推荐文章于 2020-04-19 19:49:37 发布