首页 > 系统服务 > 详细

Tomcat开启调试模式,eclipse与之建立调试

时间:2016-01-07 18:19:50      阅读:190      评论:0      收藏:0      [点我收藏+]

技术分享

复制startup为start-debug-up,修改内容为:

set "EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat"

rem Check that target executable exists
if exist "%EXECUTABLE%" goto okExec
echo Cannot find "%EXECUTABLE%"
echo This file is needed to run this program
goto end
:okExec

rem Get remaining unshifted command line arguments and save them in the
set CMD_LINE_ARGS=
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setArgs
:doneSetArgs

call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%
set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=9000
set JPDA_SUSPEND=n

:end

 

 

然后启动,即为tomcat deBug启动模式。

eclipse:

技术分享

选择Dubug-configuration

技术分享

技术分享

点击debug即可

Tomcat开启调试模式,eclipse与之建立调试

原文:http://www.cnblogs.com/xgjar/p/5110603.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!