Created
September 25, 2012 20:26
-
-
Save pfn/3784232 to your computer and use it in GitHub Desktop.
jdb over adb for android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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