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:
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
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.
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.
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.
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!
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With