Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IDEA hangs on remote debugging port

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?

like image 391
magomi Avatar asked Dec 22 '25 11:12

magomi


2 Answers

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.

like image 69
CrazyCoder Avatar answered Dec 24 '25 11:12

CrazyCoder


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.

like image 27
Felipe Avatar answered Dec 24 '25 10:12

Felipe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!