Debug with Intellij 6.0.5 on Tomcat 5.5.23
I was trying to debug a web-based application on Tomcat 5.5.23 that was developed using Intellij IDEA 6.0.5 (JDK 1.5.12)
It gives out an error message stating "Failed to establish connection to the target VM, address: '127.0.0.1:4264', transport: 'socket'.
I was reading in the forums, and it looks like it's a frequent problem without any standard solution.
Is there a permanent fix for this ? It's pretty annoying that all of the other IDE's are able to support debugging with tomcat easily and IDEA being not able to handle it properly.
Please sign in to leave a comment.
Hello Madhava,
Are you using "Remote" Tomcat run configuration? In that case you should
run Tomcat with debug parameters.
For example, create .bat-file with the following text in ]]>/bin
directory and run it:
set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=4264,suspend=n,server=y
catalina.bat start