Skip to content

Instantly share code, notes, and snippets.

@alterakey
Created March 3, 2013 15:43
Show Gist options
  • Save alterakey/5076581 to your computer and use it in GitHub Desktop.
Save alterakey/5076581 to your computer and use it in GitHub Desktop.
Android debugger attacher
#!/bin/sh
pid="$1"
if test -z "$pid"; then
echo "usage: $0 <pid>"
echo "debuggable PIDs:"
adb jdwp
exit 1
fi
adb forward tcp:8600 jdwp:"$1"
rlwrap jdb -attach localhost:8600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment