Genymotion how to debug with Chrome Dev Tools

落花浮王杯 提交于 2019-11-28 15:58:09

问题


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 ?


回答1:


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.


来源:https://stackoverflow.com/questions/21627328/genymotion-how-to-debug-with-chrome-dev-tools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!