Last active
December 15, 2015 06:39
-
-
Save parisminton/5217655 to your computer and use it in GitHub Desktop.
For Mac. Fire up adb, start port forwarding and debug Web pages live on your Droid with one command. Save this function in, or source it from, your .bash_profile. Needs Eclipse, the Android Debug Bridge and desktop Chrome installed.
This file contains hidden or 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
#!/bin/bash | |
function mobilechromedebug () { | |
previous_directory="$(pwd)" | |
cd /path/to/platform-tools/goes/here/ | |
./adb forward tcp:9222 localabstract:chrome_devtools_remote | |
open -a "/Applications/Google\ Chrome.app" http://localhost:9222 | |
cd $previous_directory | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the prompt:
mobilechromedebug