title: Remote debug in Tomcat 6
body: <p>Does anyone know the steps to configure remote debugging in Tomcat 6 for GWT applications?</p>
  
  <p>IDE - Eclipse</p>
  
  <p>Sever - Tomcat6</p>
  
  <p>Tech - GWT</p>
  
  <p>I have gone through the following link, but it was not clear for me.</p>
  
  <p><a href="http://wiki.apache.org/tomcat/FAQ/Developing" rel="noreferrer">http://wiki.apache.org/tomcat/FAQ/Developing</a></p>
  
  <p><strong>I have done the following things:</strong></p>
  
  <ol>
  <li>Placed the project war in 'Catalina_Home/webapps/project' which I wanted to debug remotely.</li>
  <li><p>Opened tomcat6w.exe and pasted java option under java tab as follows:   </p>
  
  <p><code>-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n</code></p></li>
  <li><p>Clicked on start. After starting the server, I have opened eclipse the configure the remote debugging with port 8000 and click on Debug.</p></li>
  <li>I have got the error message back saying that  <code>Failed to connect to remote VM. Connection refused</code>.</li>
  </ol>
  
  <p>Is there anything else that I am missing here. Please correct me if I am wrong any where.</p>