Skip to content

Instantly share code, notes, and snippets.

@ianldgs
Forked from KDawg/DebugAndoirdWebAppRemote.md
Last active October 4, 2019 14:09
Show Gist options
  • Save ianldgs/5c5bb9ec92d10bcb96d0199a7c77c297 to your computer and use it in GitHub Desktop.
Save ianldgs/5c5bb9ec92d10bcb96d0199a7c77c297 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

  • Enable developer mode (depends on which android version or ui of the phone)
  • settings > developer options > usb debug enable
  • chrome > settings > developer tools > usb debug enable

Desktop Setup

Desktop Debug Session

  • Open the terminal on the unpacked folder: cd path/to/platform-tools
  • Run the port forwarding command: ./adb forward tcp:9222 localabstract:chrome_devtools_remote
  • On Chrome, visit http://localhost:9222
  • Inspect any open tab of Chrome on the phone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment