配置tomcat远程调试

修改startup.bat文件

set JPDA_TRANSPORT=dt_socket

set JPDA_ADDRESS=8000
set JPDA_SUSPEND=n


call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%
#call "%EXECUTABLE%" start %CMD_LINE_ARGS%


:end



linux配置:

startup.sh

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

你可能感兴趣的:(配置tomcat远程调试)