I'm remote debugging a tomcat at another server. Tomcat is started with the following parameters (among others):
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5556
After tomcat startup, the remote port shows up:
itadmin@srv-app02:~$ netstat -tulpen | grep java
tcp 0 0 0.0.0.0:5556 0.0.0.0:* LISTEN 1000 2005708 30667/java
tcp6 0 0 127.0.0.1:8005 :::* LISTEN 1000 2006491 30667/java
....
After connecting the IDEA debugger seems to hang. I get no message about the successful connection to the remote JVM.
At the moment I have no idea what causes the problem. Any hints?
The common case for such problem is method breakpoints, it's mentioned in the FAQ.
You say it was caused by line breakpoints which is weird, never seen such problem before, but in theory source code in the IDE and compiled classes on the server could be out of sync and the IDE could send target VM the instruction to stop on the breakpoint in the wrong place which the VM did and hung.
I had a similar problem here and it let me crazy for a while. I found out that a recent installed plugin La Clojure messed up with my Tomcat environment. I know you solve this in a different way, but I am answering here because it can be useful for others.
Try to uninstall recent installed plugins, or reinstalling the IntelliJ IDEA.
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