简体   繁体   English

如何在“ C:\\ Program Files \\ Apache Software Foundation \\ Tomcat 8.0 \\”中安装的调试模式下启动Tomcat 8

[英]How can i start my Tomcat 8 in Debug mode which is Installed in “C:\Program Files\Apache Software Foundation\Tomcat 8.0\”

My Project is in Eclipse Helios and I have to run my application in Tomcat 8, The problem is Eclipse Helios is an older version so It is not supporting to set up Tomcat 8 in servers tab of Eclipse. 我的项目在Eclipse Helios中,并且我必须在Tomcat 8中运行我的应用程序,问题是Eclipse Helios是较旧的版本,因此它不支持在Eclipse的servers选项卡中设置Tomcat 8。

I am facing lot of issues while developing and testing, so I am willing to start Tomcat 8 in debug mode can any one please suggest me in this regard. 在开发和测试时,我面临许多问题,因此我愿意以调试模式启动Tomcat 8,请在这方面向我提出建议。

My goal is to start tomcat in debug mode without Setting it up in eclipse and I should be able to debug my application, I tried in multiple ways but unable to solve this issue can any one please suggest me in this regard. 我的目标是在调试模式下启动tomcat,而无需在eclipse中对其进行设置,我应该能够调试我的应用程序。我尝试了多种方法,但无法解决此问题,任何人都可以在这方面建议我。

Regards, Nithin. 问候,尼丁。

** Copied answer ** **复制的答案**

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/Developing and it worked in my case (Tomcat 6.0.26 for windows) 这是根据http://wiki.apache.org/tomcat/FAQ/Developing进行的 ,并且在我的情况下有效(适用于Windows的Tomcat 6.0.26)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM