码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2016-01-07 18:22:46      阅读:192      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!