7

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.

4

2 回答 2

9

使用命令行,转到您的 Tomcat 文件夹..\Tomcat6\bin并编写命令:

catalina jpda start

等到 Tomcat 运行(你会看到类似的东西):

tomcat 启动

然后在日食中:Debug -> Debug configuration -> Remote Java Application -> New

调试配置浏览项目并调试!

于 2013-04-17T21:34:33.697 回答
6

使用以下内容:

"-Xdebug"在两个不同的行中,"-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"在 tomcat6w.exe > Java 选项卡 > Java 选项(在其他所有内容之前)中没有 qoutes 并应用。

然后,您只需在 Eclipse 的调试配置中为您的项目配置一个远程 Java 应用程序配置文件,并将其指向相同的 jpda 端口。

于 2014-07-24T10:55:29.950 回答