Tomcat远程调试
第一步:修改tomcat的startup.bat文件,增加如下配置
SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8788
第二步:eclipse中debug启动工程
第一步:修改tomcat的startup.bat文件,增加如下配置
SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8788
第二步:eclipse中debug启动工程