tomcat9 开启远程调试 1、配置tomcat 9 (linux版 + idea)2、配置idea3、启动远程tomcat4、启动idea 中的remote tomcat 1、配置tomcat 9 (linux版 + idea) 在tomcat 的bin/catalina.sh 文件中添加 export JPDA_ADDRESS=0.0.0.0:9000 # catalina.sh 文件中的说明 # JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start" # command is executed. The default is localhost:8000. export JPDA_ADDRESS=0.0.0.0:9000 2、配置idea 新增remote tomcat 配置remote tomcat ,配置tomcat 中的host 为服务器的ip,port 为步骤1 中配置的端口:9000 配置remote tomcat 中的debug 参数,位置为Startup/Connection->Debug->Port 配置为步骤1 中配置的端口:9000 3、启动远程tomcat 启动命令为: sh bin/catalina.sh jpda start 4、启动idea 中的remote tomcat 这时候需要用debug模式启动tomcat,启动期间会有连接不上的情况(tomcat9 还没有加载好),多试几次就好