用Eclipse远程调试(Remote debug)Tomcat

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。

适合不想或没必要用任何插件的情形。

Ref: http://tomcat.apache.org/faq/development.html#rd-eclipse

Related posts

0 Responses to “用Eclipse远程调试(Remote debug)Tomcat”


  • No Comments

Leave a Reply




This work by wolfg is licensed under a Attribution-Noncommercial-Share Alike 2.5 China Mainland.