Jetty远程调试Tomcat

1,在tomcat的startup.sh文件中添加一下内容(文件startup.sh在博客文件中即可查到)

declare -x CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8124"

2,在本地jetty中配置Remote Java Application

填写host和port直接debug即可调试

posted @ 2017-09-02 18:11  wanhua.wu  阅读(263)  评论(0编辑  收藏  举报