CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
Start tomcat and use this command: catalina.sh jpda start
Then select Romote Java Application in Eclipse and fill in the corresponding ip and port.