./gradlew --offline war
start web application "buggyweb" on a servlet runtime browse to http://localhost:8080/buggyweb/MyServlet
cd $CATALINA_HOME
# 8000 is Tomcat's default debug port
export DEBUG_PORT=8000
bin/catalina.sh jpda start
browse to http://localhost:8080/buggyweb/MyServlet
tail -30f logs/localhost.`date +%Y-%m-%d`.log
export DEBUG_PORT=5005
export GRADLE_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$DEBUG_PORT"
#export GRADLE_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$DEBUG_PORT,onjcmd=y"
./gradlew --offline appRun
browse to http://localhost:8081/buggyweb/MyServlet
JAVA_PID=$(ps|grep java|grep -v grep|awk '{print $1 }')
jcmd $JAVA_PID VM.info
jcmd $JAVA_PID VM.start_java_debugging
./youdebug -socket $DEBUG_PORT linebreak.ydb
./youdebug -socket $DEBUG_PORT exception.ydb
./youdebug -socket $DEBUG_PORT diagnose.ydb
./youdebug -socket $DEBUG_PORT firstbugfix.ydb
./youdebug -socket $DEBUG_PORT finalbugfix.ydb
./youdebug -socket $DEBUG_PORT threaddump.ydb