Skip to content

Instantly share code, notes, and snippets.

@pfn
Created September 25, 2012 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfn/3784232 to your computer and use it in GitHub Desktop.
Save pfn/3784232 to your computer and use it in GitHub Desktop.
jdb over adb for android
@echo off
setlocal
adb kill-server
adb start-server
for /f "delims=" %%i in ('adb jdwp') do set pid=%%i
adb -d forward tcp:29882 jdwp:%pid%
jdb -J-Duser.home=. -connect com.sun.jdi.SocketAttach:hostname=localhost,port=29882 -sourcepath %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment