sajini sandareka
sajini sandareka

Reputation: 29

Remote debugging of my android device using google chrome is not showing browser inspect

I am using an android device to debug my app through the google chrome browser.

It shows as my device is detected, but shows a message as 'No browser detected'.

I used ADB devices command as well. But still cannot see browser inspect option.

Here I have attached sample screenshot

Upvotes: 3

Views: 3137

Answers (2)

Manoj Perumarath
Manoj Perumarath

Reputation: 10254

At first make sure that

Discover USB devices checkbox is enabled in the Settings right below the listed devices option.

Try changing the connected mode from Charging/ Transfer Files/ MIDI etc. Because it varies on different manufacturers.

Then only it might show the prompt(RSA key fingerprint) to allow connection with the connected computer.

If that also didn't work, instead of opening the tab with chrome://inspect or chrome://devices

Follow these steps

  • Right click on any tab and click inspect
  • Go to sources tab
  • On the extreme right click the three dots menu
  • Click More Tools
  • Select Remote Devices

Check that page, it may help you.

Upvotes: 0

Rohit5k2
Rohit5k2

Reputation: 18112

To debug the webview you need to enable debugging as below

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
    WebView.setWebContentsDebuggingEnabled(true);
}

More information is available at https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews

Upvotes: 1

Related Questions