Tomcat configures remote debugging port
Add any of the following lines to %CATALINA_HOME%\bin\startup.bat:
SET JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787
1.Linxu system: Add the following content to the beginning of apach/bin/startup.sh:
- declare -x CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8788"
2. Windows system: Add the following content to the beginning of apach/bin/startup.bat:
- SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8788
3. How to use the linux open port command.
nc -lp 8788 & (open port 8788)
4. Check if port 8788 is open
netstat -an | grep 8788