Using Google Chrome Dev tools on Android (emulator)

AndroidCssGoogle Chrome-DevtoolsEmulationRead Eval-Print-Loop

Android Problem Overview


I need to debug CSS for some site running on the device under Android (in the common REPL mode). As I know it is possible to connect the device with the desktop via USB cable to do that. But the problem is I have no such a device (with Android). I have the Android emulator (Andy) but it seems that chrome installed on it has no dev tools at all. So is it possible to solve the problem without physical Android device?

UPD==================

Once again: The point is I have no any Android device. I have an emulator for it only (Andy Android emulator).

Android Solutions


Solution 1 - Android

Navigate to chrome://inspect/#devices on your chrome browser.

From there, you should see a list of attached devices (including emulators, not sure about Andy), but if it is possible, that's where you would find it.

Solution 2 - Android

Adding to Josh's answer, I've had to:

  1. Navigate to chrome://inspect/#devices on my machine.
  2. Open Chrome in Andy.
  3. List devices with adb devices.

Andy finally shows up in Chrome's devices list.

Solution 3 - Android

In this context, "phone" is your emulator.

First you must enable debugging on your phone:

Settings > About Phone > Build number > Tap it 7 times to become developer;

then:

Settings > Developer Options > USB Debugging.

Then navigate to chrome://inspect/#devices. You should find the open tab on your phone there.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionsrgg6701View Question on Stackoverflow
Solution 1 - AndroidJosh BurgessView Answer on Stackoverflow
Solution 2 - AndroidblvzView Answer on Stackoverflow
Solution 3 - AndroidCody JenkinsView Answer on Stackoverflow