AppSuite:UI remote debugging android mac

Revision as of 12:46, 24 June 2013 by David.bauer (talk | contribs) (Created page with "{{Stability-experimental}} <div class="title">How to setup remote debugging for chrome on android devices with a mac</div> ==Prerequisites== You need the latest X-Code and ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

API status: In Development

How to setup remote debugging for chrome on android devices with a mac

Prerequisites

You need the latest X-Code and a working setup of the latest Homebrew. Check with brew doctor.

Setup

$ brew install android-sdk

Add this to your shells rc (e.g. .bashrc or .zshrc)

export ANDROID_HOME=/usr/local/opt/android-sdk

Launch the "Android SDK Manager".

$ android

Check Android SDK Platform-tools and Android Support Library uncheck everything else, except if you plan on using other components of the SDK.

Add this to your shells rc (e.g. .bashrc or .zshrc) for convenience:

alias chrome-android="adb forward tcp:9222 localabstract:chrome_devtools_remote"

Usage

Connect an Android Device via USB.

Open a terminal and enter "chrome-android".

Open Chrome on your device.

Visit localhost:9222 on your desktop machine for remote debugging.