1. 程式人生 > >配置tomcat遠端除錯

配置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"