Start tomcat 6 in debug mode?

半城伤御伤魂 提交于 2019-12-21 19:41:40

问题


How to start the tomcat 6 server in debug mode and use it with Eclipse Ide for remote debugging. ?

Right now i am using command line to start the server :

tomcat6.exe


回答1:


With the tomcat6.exe version you can enable remote debugging by running the tomcat6w.exe application and adding the following 2 java options in the list on the Java tab:

-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

This is according to http://wiki.apache.org/tomcat/FAQ/Developing and it worked in my case (Tomcat 6.0.26 for windows)




回答2:


As you are using eclipse goto Windows-> Show view -> Add Server.

Choose Perspective as Debug from Windows-> Open Perspective -> Debug

Then Right click on added server and start it in debug mode.



来源:https://stackoverflow.com/questions/5458212/start-tomcat-6-in-debug-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!