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?
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.
Can you check if this works?
JPDA_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n" catalina.sh jpda start
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