1.切换到tomcat安装目录文件夹,找到catalina.sh,修改
增加一行:
CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
重启tomcat