Reputation: 827
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
Upvotes: 16
Views: 86750
Reputation: 1936
For me, the device wasn't appearing even though it I had enabled USB Debugging. For anyone experiencing that, on your android device, after enabling USB Debugging, check the settings for USB Preferences under Connected Devices.
If your device isn't showing up on your desktop chrome://inspect/#devices
, the USB Preferences may have defaulted to "No Data Transfer" -- change it to "File Transfer" and it may pop up a permissions dialog on the phone, and after permitting it, it should show the device on the desktop chrome inspect/#devices.
Upvotes: 0
Reputation: 89
If none of the above mentioned is applicable for you, or none of them solved the problem for you, you might wanna do:
adb forward tcp:9222 localabstract:chrome_devtools_remote
from your command line.
Upvotes: 3
Reputation: 1
I already tried that. It did not work for me, but I found this:
javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0
Once you've done that you can name it anything you want.
(NOTE, you need to be in the tab you will like to inspect/edit).
Just click on the bookmark you just made then you will be able to practically edit anything you want to with this editing mode.
Hopefully That Helped You. (:
Upvotes: -1
Reputation:
After connecting your device, make sure you open Chrome browser on the device and after that refresh the Chrome window on your PC. This will display the entry of the opened Chrome browser on the device. It will not launch if you don't first open Chrome browser on your phone
Upvotes: 4
Reputation: 29020
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.
Upvotes: 14
Reputation: 827
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
Upvotes: 8