I'm using IDEA 5 build 3487 and Tomcat 5.5.9 on Windows 2000. IDEA and Tomcat are on the same machine. I've tried to set up remote debugging according to the docs.
In Tomcat I edited catalina.bat to include...
set JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
I also opened the "Configure Tomcat" utility that came in the Tomcat distribution and under that utility's "Java" tab added a line to "Java Options" so that it is now set to...
-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5
-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed
-Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
In IDEA I went to Run/Debug Configurations and added a new configuration under the "Remote" tab with all the default settings. (Is there normally any need to change any of the defaults?)
Under Settings > Project Settings > Compiler I made sure "Generate debugging info" is set.
When I start Tomcat then click the debug icon in the toolbar, an error dialog comes up saying...
"Error running Tomcat localhost remote debug: unable to open debugger port : java.net.ConnectException "connection refused: connect" at 'localhost 5005' using socket transport."
Any help would be greatly appreciated.