用Eclipse远程调试(Remote debug)Tomcat
用Eclipse远程调试(Remote debug)Tomcat
1.配置Tomcat支持remotedebugging
给JVM加上如下的启动参数:
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n#SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5888
2.Eclipse里新建一个RemoteJavaApplications的debug
“Run->Debug…”,then“RemoteJavaApplications”,“New”,port添8000。
相关推荐
xnuzfm 2020-02-12
zhangmin0 2019-12-14
heshizui 2015-03-19
lzqlawrence 2015-08-19
小易Smalle 2016-07-22
Yvonne的小 2014-06-05
wangzhe00 2014-06-27
tgxblue 2016-03-25
heshizui 2015-03-19
Christina潇潇 2015-01-27