Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome://inspect displaying device though not displaying any opened tabs

I am trying to utilize chrome for remote debugging of an android web application. I am unable to get any open tabs from the device to show under chrome://inspect list for remote debugging.

I have done the following:

  1. Made sure my device driver is installed appropriately.
  2. Turned on developer mode and usb debugging on my device via the developer menu.
  3. Checked and made sure that my device is listed in adb list via issuing "adb devices" from the command line.

My device is displayed under the device list via (chrome://inspect) just cant seem to get any open tabs listed any help would be much appreciated. Thanks

Device: Samsung Galaxy Tablet 10.1 Android 4.2.2

enter image description here

like image 221
xMythicx Avatar asked Jul 14 '14 19:07

xMythicx


People also ask

How do I get Chrome to open inspect devices?

On your development machine, open Chrome. Go to chrome://inspect#devices . Make sure that the Discover USB devices checkbox is enabled. Connect your Android device directly to your development machine using a USB cable.

How do you accept a debugging session on a device?

For Android 4.2 and newer, Developer options is hidden by default; use the following steps: On the device, go to Settings > About <device>. Tap the Build number seven times to make Settings > Developer options available. Then enable the USB Debugging option.

What is the shortcut to open inspect element in Chrome?

How to Inspect Elements. To inspect elements you have to right-click any part of a webpage and click Inspect > Inspect Element. Alternatively, you can press Command+Option+i on your Mac or F12 on your PC to do the same.

How do I inspect Chrome on IOS?

In Chrome on your iPad or iPhone, go to chrome://inspect and then press Start Logging. Now go do your thing in another tab, keeping this tab open. Come back anytime to see any and all console outputs!


2 Answers

Using chrome://inspect/#devices, if the device is detected, but tabs open in chrome on the device are not listed, look for the "activate USB debugging" option in the chrome settings-->developer options tab on the device. This is in addition to the USB debugging option you've already checked in the Android developer settings.

like image 148
bbsimonbb Avatar answered Sep 20 '22 16:09

bbsimonbb


Ok you must use chrome mobile in order to debug any webviews or browser tabs. No other browser works. I was unaware of this.

//Edit

As of Android version 4.4 or later this is no longer the case. Android 4.4 has support for debugging internal Webviews. Please see https://developer.chrome.com/devtools/docs/remote-debugging#debugging-webviews

like image 26
xMythicx Avatar answered Sep 18 '22 16:09

xMythicx