Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Genymotion how to debug with Chrome Dev Tools

We're using Genymotion to test/debug a WebView based Android Application. The device show up in Chrome Dev Tools via Inspect Device, but with no inspection ability. We made different attempts, with/whitout ADB, with/whitout Android Studio but with no luck. What's wrong/missing ?

like image 425
Nicola Giulia Pernice Avatar asked Feb 07 '14 12:02

Nicola Giulia Pernice


1 Answers

See the official docs on enabling debugging on Android

  1. Start up your Virtual Device and, inside the virtual device, enable "USB debugging" by going to Settings > Developer Options > USB Debugging. If you get a prompt that says "always allow USB debugging", press "OK". If you don't see the option for Developer Options, first goto Settings > About Phone/Tablet, find Build Number, and tap it about 10 times. Go up one menu and find the Developer Options menu now enabled above the About menu options.

  2. Go to Chrome on your Host OS. type chrome://inspect in the url and press enter.

  3. Check the box at the top that says "Discover USB Devices". There should now be a list of virtual devices currently available to Chrome. Find the device you want to debug and click the inspect link.

  4. A new Chrome Developer Tools window should open up containing the code for the page you're currently viewing in your browser, and should show the "Emulation" tab at the bottom with information about your device specs.

If you are not able to get this working then check the following items:

  • Check port forwarding.
  • Proxy settings.
  • USB driver installation.
like image 163
Harsha Vardhan Avatar answered Sep 19 '22 06:09

Harsha Vardhan