Aboorah Abeer
Aboorah Abeer

Reputation: 13

How to inspect the Android device using chrome?

Is there I way that someone can help me fixing a problem ! I am trying to do some remote debugging for my Android app. I am using chrome tools to inspect the device. When I open that I can see that my device is recognized by chrome however that inspect button that usually appears is not there. In short, chrome can see the device but I can't really go an inspect it. I followed the Remote debugging tutorial for chrome I've done all of the steps and it seems that when all of that is done a button for inspect should be there; but it's not for my case ! Any help ???

Upvotes: 0

Views: 1580

Answers (2)

jcesarmobile
jcesarmobile

Reputation: 53301

If you are on android 4.4 or greater you can add this code on the onCreate method:

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

Then your app should appear on chrome

You can also try gapdebug to debug phonegap apps https://www.genuitec.com/products/gapdebug/

Upvotes: 1

Dr. Dreave
Dr. Dreave

Reputation: 539

Which kind of app do you want to debug with the Google Chrome Web Inspector?

As far as I know you can use the Chrome Tools to debug web pages in the Google Chrome app on your mobile device. So if you have the Chrome app and at least one tab opened you should be able to inspect the tab's contents.

I don't think any further debugging in your apps is supported.

Upvotes: 0

Related Questions