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.