eclipse+linux+tomcat remote debugging

1. Add in the first line of the "tomcat/bin/catalina.sh" text, configure as follows, (note that it should be on one line) and then start the service.

CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8082"

 

2. The configuration steps of debug in eclipse are shown in the figure

Figure 1
 

Figure 2

 

After startup, you can access the service's address normally, and you can debug at the local breakpoint.

Guess you like

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