Tomcat中的远程调试6 [英] Remote debug in Tomcat 6

查看:134
本文介绍了Tomcat中的远程调试6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道在Tomcat 6中为GWT应用程序配置远程调试的步骤?



IDE - Eclipse



Sever - Tomcat6



技术 - GWT



我已经通过以下链接,但不是对我而言。



http:// wiki.apache.org/tomcat/FAQ/开发



我已经做了以下事情:


  1. 将项目战争放在我想远程调试的Catalina_Home / webapps / project中。

  2. 已打开tomcat6w.exe和java选项下的粘贴java选项如下:



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


  3. 点击开始。启动服务器后,我打开eclipse配置端口8000的远程调试,然后点击Debug。


  4. 我收到错误消息,说无法连接到远程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:

  1. Placed the project war in 'Catalina_Home/webapps/project' which I wanted to debug remotely.
  2. Opened tomcat6w.exe and pasted java option under java tab as follows:

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

  3. Clicked on start. After starting the server, I have opened eclipse the configure the remote debugging with port 8000 and click on Debug.

  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆