1、服务器上配置
/appserver/tomcat/bin/catalina.sh
CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
2、eclipse配置
Debug Configurations ==>Remote Java Application=>右键new
http://jingyan.baidu.com/article/0320e2c1f4ef6b1b87507b06.html