Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote debugging Tomcat with Eclipse

Tags:

eclipse

tomcat

I can't seem to debug the tomcat application through Eclipse. I've set

CATALINA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

and then I run bin/catalina.sh, where I see output saying it's listening for dt_socket on port 8000. But whenever I try to connect to port 8000 in Eclipse (by adding an entry in the remote java application menu), it complains about a refused connect. Any ideas?

like image 781
victor Avatar asked Sep 30 '10 23:09

victor


People also ask

Where is remote debug port Tomcat?

Go to "Run->Debug Configurations...". Click on "Remote Java Applications", then click "New". Type in the title. Note that port 8000 from the Tomcat instructions.


1 Answers

Can you check if this works?

JPDA_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"  catalina.sh jpda start 
like image 129
Raghuram Avatar answered Oct 03 '22 03:10

Raghuram