43

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 ?

Nico Pernice
  • 747
  • 1
  • 6
  • 10

1 Answers1

71

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.
Community
  • 1
  • 1
Harsha Vardhan
  • 3,286
  • 2
  • 15
  • 22
  • didn't found any option to turn on `usb debugging` in genymotion – coding_idiot Jul 08 '14 at 21:32
  • 8
    usb debugging will be present in Settings -> Developer Options. If developer options is not present then go to Settings -> About Phone and tap Build number 10 times, developer options will be enabled – Harsha Vardhan Jul 14 '14 at 10:36
  • 2
    @coding_idiot I was confused too. I believe user3048095 is referring to the Android Device settings, not Genymotion configuration. So Device > Settings (app) > About Phone *click on build number 10x* (this actually works) then go back one level and you'll see *Developer Options* – Aubricus Jul 15 '14 at 23:16
  • Hi Aubricus, U r rt. it is android device settings not genymotion configuration. – Harsha Vardhan Jul 24 '14 at 04:15
  • [Here are the offical docs](https://developer.chrome.com/devtools/docs/remote-debugging) for reference. – Aubricus Jul 24 '14 at 22:50
  • @HarshaVardhan: What do you mean with "U r rt."? – Sebastian Mach Oct 28 '14 at 06:28
  • @phresnel, "U r rt." means "You're right". The information provided by Aubricus is right – Harsha Vardhan Oct 28 '14 at 08:55
  • 25
    I turned on usb debugging, and I see my emulator listed on about:/inspect, but there is no `inspect` link like you said. – Joshua Soileau Feb 19 '15 at 20:59
  • I too see emulator listed but no inspect link. I'm running Android 4.2.2 in my genymotion vm. – Mark Nadig Mar 17 '15 at 21:59
  • I'm also running into the same issue. I see the device in Chrome, but no `inspect` button. Just a guess, but maybe it's because we're not using Chrome on the device, but the default non-Chrome browser. – lobati Mar 31 '15 at 23:47
  • This might be useful: http://stackoverflow.com/questions/23900032/chome-dev-tools-and-genymotion-android-emulator – lobati Mar 31 '15 at 23:48
  • 2
    The "inspect" button links you to an instance of Chrome running in the device. If there is no instance of Chrome running in the device, you'll not see an "inspect" button. – Jeff Dege May 21 '15 at 23:15
  • I find the lack of the inspect button as well and I have seen this work with a physical connected device so I know what I should see and how this works. – landed Jul 22 '15 at 09:06
  • 19
    The reason all of you're not getting an "inspect" button (even after doing all specified in the answer above) is probably because you are running Android versions below 4.4 (KitKat). As the docs says: "To begin remote debugging, you need ... For app debugging: Android 4.4+ ..." – Espen Riskedal Sep 17 '15 at 11:29
  • Like other mentioned, but it may be not clear, you need to have the webview started or in other words, you need to have your application started. If your custom app contains a webview (not talking about the Chrome application!), the "inspect" link will appear automatically. – Christophe Vidal Feb 18 '16 at 15:14
  • Pictures are worth a thousand words.... There are many systems here. Host Geny Chrom your app etc... Try to be precise with your wording. – Steven T. Cramer Mar 11 '18 at 06:03