Tomcat中的远程调试6 [英] Remote debug in Tomcat 6
问题描述
IDE - Eclipse
Sever - Tomcat6
技术 - GWT
我已经通过以下链接,但不是对我而言。
http:// wiki.apache.org/tomcat/FAQ/开发
我已经做了以下事情:
- 将项目战争放在我想远程调试的Catalina_Home / webapps / project中。
-
已打开tomcat6w.exe和java选项下的粘贴java选项如下:
-Xdebug -Xrunjdwp:transport = dt_socket,address = 8000,server = y ,suspend = n
-
点击开始。启动服务器后,我打开eclipse配置端口8000的远程调试,然后点击Debug。
- 我收到错误消息,说
无法连接到远程VM。连接拒绝
。
还有其他的,我在这里缺少。如果我在任何地方出错,请更正我。
使用命令行,去你的Tomcat文件夹 .. \Tomcat6\bin
并写命令:
catalina jpda start
等到Tomcat运行(你会看到类似的东西):
然后在eclipse中: 调试 - >调试配置 - >远程Java应用程序 - >新的
浏览项目并调试!
Does anyone know the steps to configure remote debugging in Tomcat 6 for GWT applications?
IDE - Eclipse
Sever - Tomcat6
Tech - GWT
I have gone through the following link, but it was not clear for me.
http://wiki.apache.org/tomcat/FAQ/Developing
I have done the following things:
- Placed the project war in 'Catalina_Home/webapps/project' which I wanted to debug remotely.
Opened tomcat6w.exe and pasted java option under java tab as follows:
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
Clicked on start. After starting the server, I have opened eclipse the configure the remote debugging with port 8000 and click on Debug.
- I have got the error message back saying that
Failed to connect to remote VM. Connection refused
.
Is there anything else that I am missing here. Please correct me if I am wrong any where.
Use command line, go to your Tomcat folder ..\Tomcat6\bin
and write command:
catalina jpda start
Wait until Tomcat will run (You will see something like) :
Then in eclipse: Debug -> Debug configuration -> Remote Java Application -> New
Browse a project and debug!
这篇关于Tomcat中的远程调试6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!