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:
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.
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!
Use the following :
"-Xdebug"
and "-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
in two different lines, without qoutes in tomcat6w.exe > Java tab > Java Options (before everything else) and apply.
Then you just need to configure a Remote Java Application profile in Debug Configuration of Eclipse for your project and point it to the same jpda port.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With