eclipse 在调试模式下启动tomcat 6?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5458212/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Start tomcat 6 in debug mode?
提问by Lokesh Sah
How to start the tomcat 6 server in debug mode and use it with Eclipse Ide for remote debugging. ?
如何在调试模式下启动 tomcat 6 服务器并将其与 Eclipse Ide 一起使用以进行远程调试。?
Right now i am using command line to start the server :
现在我正在使用命令行启动服务器:
tomcat6.exe
tomcat6.exe
采纳答案by axk
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:
使用 tomcat6.exe 版本,您可以通过运行 tomcat6w.exe 应用程序并在 Java 选项卡的列表中添加以下 2 个 java 选项来启用远程调试:
-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
This is according to http://wiki.apache.org/tomcat/FAQ/Developingand it worked in my case (Tomcat 6.0.26 for windows)
这是根据http://wiki.apache.org/tomcat/FAQ/Developing并且它在我的情况下工作(Tomcat 6.0.26 for windows)
回答by abhu74
As you are using eclipse goto Windows-> Show view -> Add Server.
当您使用 Eclipse 时,请转到 Windows-> 显示视图-> 添加服务器。
Choose Perspective as Debug from Windows-> Open Perspective -> Debug
从 Windows-> Open Perspective -> Debug 中选择透视作为调试
Then Right click on added server and start it in debug mode.
然后右键单击添加的服务器并以调试模式启动它。