Skip to content

Scripts and demo webapp for YouDebug talk at Majug on April 26th 2012

Notifications You must be signed in to change notification settings

jetztgradnet/youdebug-talk

Repository files navigation

YouDebug demo

Build demo app

./gradlew --offline war

run demo app in Eclipse debugger

start web application "buggyweb" on a servlet runtime browse to http://localhost:8080/buggyweb/MyServlet

run demo app in Tomcat

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

show Tomcat log file

tail -30f logs/localhost.`date +%Y-%m-%d`.log

Run demo app in Jetty

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

Get pid of java program

JAVA_PID=$(ps|grep java|grep -v grep|awk '{print $1 }')
jcmd $JAVA_PID VM.info
jcmd $JAVA_PID VM.start_java_debugging

line break

./youdebug -socket $DEBUG_PORT linebreak.ydb

diagnostics: exception

./youdebug -socket $DEBUG_PORT exception.ydb

diagnostics: parameter check

./youdebug -socket $DEBUG_PORT diagnose.ydb

First fix

./youdebug -socket $DEBUG_PORT firstbugfix.ydb

Final fix

./youdebug -socket $DEBUG_PORT finalbugfix.ydb

threaddump

./youdebug -socket $DEBUG_PORT threaddump.ydb

About

Scripts and demo webapp for YouDebug talk at Majug on April 26th 2012

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published