ms133 发表于 2017-2-26 06:30:17

启动Jetty Debug模式

到jetty-home/run.bat 记事本打开 输入
@echo off
echo 正在启动jetty,请稍等......

e:
cd E:\amp\Container\jetty-distribution-8.0.0.M1
java -Xms256M -Xmx1024M -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999 -jar start.jar

echo 启动完成
echo. & pause

其中 cd E:\amp\Container\jetty-distribution-8.0.0.M1就是你的jetty-home

加上 > stdout.log 2> err.log可以重定向jetty console 好比

@echo off
echo 正在启动jetty,请稍等......

e:
cd E:\amp\Container\jetty-distribution-8.0.0.M1
java -Xms256M -Xmx1024M -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999 -jar start.jar> stdout.log 2> err.log

echo 启动完成
echo. & pause
页: [1]
查看完整版本: 启动Jetty Debug模式