java – remote debugging tomcat 8.5 with eclipse 2023-06
I keep on getting a connection time-out error when trying to debug my Tomcat web app remotely using Eclipse.
The way I’ve configured:
bin/setenv.bat:
set JPDA_OPTS=-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
server.xml:
< Connector port=”8000″ address=”0.0.0.0″ protocol=”HTTP/1.1″ connectionTimeout=”20000″ redirectPort=”8443″ debug=”1″/>
In Eclipse I created a new remote java application in the debug configuration with host name as the server’s IP and port 8000.
I created a rule in firewall to enable the port.
what am I missing?
Also – how do I find an open port to use for debugging? what is the correct approach?
Read more here: Source link