[Android] – How to setup remote debugging for chrome on android devices with a mac?

Prerequisites :

  • X-Code
  • Homebrew ( To check : $ brew doctor ) .

Setup :

$ brew install android-sdk

# Add your environment variable ( ~/.bash_profile )

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

# Run the android application

$ android

# install “Android SDK Platform-tools”

Screen Shot 2016-08-31 at 4.18.18 PM

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.
  • Chrome Plugin

Chrome Plugin

A simpler way to perform remote debugging directly with Chrome is to install the “ADB Plugin”. It’s a Chrome Plugin/App and can be installed from the Chrome WebStore. All you need is a running Android SDK, nothing else. The ADB Plugin adds a icon to the Chrome toolbar which shows all inspectable targets on connected devices/emulators.

Screen Shot 2016-08-31 at 4.23.53 PM

You can watch this movie with all steps . 🙂

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s