Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't see my device of chrome://inspect/#devices

Tags:

I've followed the instructions at google: https://developer.chrome.com/devtools/docs/remote-debugging. I've also went over the troubleshooting section - but nothing seems to work.

I have samsung galaxy 3 (android 4.1.2, chrome 42.0.2311.111). USB debugging enabled. I've tried restarting the device after ticking the USB debugging a few times.

On windows 8 I run chrome (44.0.2388.0 canary). I've installed Samsung USB Driver, and my computer can see my device.

I do not get any notification when plugging the device nor when opening canary with the inspect page. Did I miss anything?

like image 727
yccteam Avatar asked May 01 '15 08:05

yccteam


People also ask

How do I view inspect in Chrome?

Method 1: Inspect Element Using Chrome Developer ToolsAt the top right corner, click on three vertical dots. From the drop-down menu, click on More tools -> Developer Tools. macOS users can use the shortcut – command + option + C and Windows users can use Control + Shift + C.

How do I add a device to Chrome Developer Tools?

To add a custom device: Click the Device list and then select Edit. On the Settings > Devices tab, either choose a device from the list of supported ones or click Add custom device to add your own. If you're adding your own, enter a name, width, and height for the device, then click Add.


2 Answers

Try these steps:

  • Download and install Android SDK
  • Open SDK Manager.exe
  • Select Android SDK Platform-tools and press Install packages...
  • Open a command prompt and execute these commands:
    • cd C:\Program Files(x86)\Android\android-sdk\platform-tools (or C:\Users\User\AppData\Local\Android\Sdk\platform-tools)
    • adb.exe devices

You should receive a response like this:

List of devices attached ABCDEFG123  device 

If your device is listed check if Chrome detect the device, otherwise try to execute this command:

  • adb.exe kill-server
  • adb.exe start-server
  • adb.exe devices

Check again if Chrome detect the device.

If your device is not listed at all after executing adb devices command there is something wrong in your configuration (e.g. incorrect or missing drivers?)

like image 68
Mattia Maestrini Avatar answered Sep 28 '22 14:09

Mattia Maestrini


Hope this helps somebody else...

This happened to me because I was trying to Chrome inspect a release build (Ionic; i.e. ionic build android --release). If I build a debug app (ionic build android), I am able to see the app from the chrome inspection tool without any issues.

Google play does not like debugable apps https://developer.android.com/studio/publish/index.html which is needed for the inspection - see this SO link: debugging an ionic app for android platform hence proper releases won't appear in the Chrome inspection.

like image 34
Nick Brady Avatar answered Sep 28 '22 15:09

Nick Brady