Skip to content

Instantly share code, notes, and snippets.

@KDawg
Created October 24, 2012 22:57
Show Gist options
  • Save KDawg/3949463 to your computer and use it in GitHub Desktop.
Save KDawg/3949463 to your computer and use it in GitHub Desktop.
Debug Android WebApp Over Remote Chrome from OSX

#Remote debugging USB-connected Android via Chrome

##Phone Setup

  • Requires a handset with modern Android (ala 4.X, etc)
  • settings => developer options => usb debug enable
  • phone => chrome => settings => developer tools => usb debug enable

##Desktop Setup - One Time Only

##Desktop Debug Session

  • desktop => cd ~/bin/android-sdk-macosx/platform-tools
  • desktop => terminal => adb forward tcp:9222 localabstract:chrome_devtools_remote
  • desktop => Chrome => http://localhost:9222
  • Now the desktop Chrome dev tools can reach out to what the handset sees
@chitomanansala
Copy link

The only thing to edit is the path of the Android SDK is user define.

@zosiakropka
Copy link

Android 4.4+ is required for the remote debugging - see Remote Debugging on Android with Chrome

@ianldgs
Copy link

ianldgs commented Oct 4, 2019

It's possible to download just the platform-tools (8mb) here: https://developer.android.com/studio/releases/platform-tools, without having to download the whole android studio.

@dagadbm
Copy link

dagadbm commented Oct 15, 2019

brew cask install android-platform-tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment