Tomcat remote debugging

1. The Tomcat application server is started in debug mode

#Modify the debug port (default 8000 if needed)
   vim bin/catalina.sh modify the value of JPDA_ADDRESS (for example: 8009)
#Start the application server in debug mode
   ./catalina.sh jpda start


 

Second, Eclipse remote debugging code

#1. Select a web project, right-click to debug
#2. Select Debug Configurations
#3. Double-click Remote Java Application
#4. Enter the application server Host (eg: 120.25.233.113) and Port (eg: 8009) to connect remotely

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326614030&siteId=291194637