myeclipse 远道调试linux服务器程序
myeclipse 远程调试linux服务器程序http://blog.csdn.net/sunyujia/article/details/2614614?http://blog.
myeclipse 远程调试linux服务器程序
http://blog.csdn.net/sunyujia/article/details/2614614
?
http://blog.csdn.net/chuangxin/article/details/6015733
?
http://hi.baidu.com/coolcooldool/blog/item/fff76031e80a0a03ebc4afcb.html
?
http://www.javastar.org/?p=212
?
?
一. 应用场景
3. 打开startup.bat, 在文件中找到"call "%EXECUTABLE%" start %CMD_LINE_ARGS%",
改为" call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%",
也就是在start前加jpda.
4. 在eclipse debug中选择" Remote Java Application" ,新建一个批port为jpda_address的值
?
?
?
linux下执行命令:
?
?./catalina.sh
Usage: catalina.sh ( commands ... )commands:??debug ? ? ? ? ? ? Start Catalina in a debugger??debug -security ? Debug Catalina with a security manager??jpda start ? ? ? ?Start Catalina under JPDA debugger??run ? ? ? ? ? ? ? Start Catalina in the current window??run -security ? ? Start in the current window with security manager??start ? ? ? ? ? ? Start Catalina in a separate window??start -security ? Start in a separate window with security manager??stop ? ? ? ? ? ? ?Stop Catalina, waiting up to 5 seconds for the process to end??stop n ? ? ? ? ? ?Stop Catalina, waiting up to n seconds for the process to end??stop -force ? ? ? Stop Catalina, wait up to 5 seconds and then use kill -KILL if still running??stop n -force ? ? Stop Catalina, wait up to n seconds and then use kill -KILL if still running??version ? ? ? ? ? What version of tomcat are you running?
然后执行?
?./catalina.sh jpda start