Genymotion如何使用Chrome浏览器开发工具来调试如何使用、开发工具、浏览器、Genymotion

2023-09-03 21:19:39 作者:高傲的存在﹌

我们正在使用Genymotion测试/调试基于Android的应用程序的WebView。 通过该设备显示在浏览器开发工具检查设备,但没有检测能力。 我们做了不同的尝试,与/ whitout亚洲开发银行,与/ whitout机器人工作室,但没有运气。 什么错误/丢失?

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 ?

推荐答案

请参阅官方文档上Android上启用调试

启动您的虚拟设备,并虚拟设备,使USB调试转到设置> 开发选项> USB调试。如果你得到一个提示,说总是允许USB调试,preSS确定。如果您没有看到开发选项,首先转到设置>选项关于手机/平板电脑,找到内部版本号,然后点击它有关的10倍。转到上一级菜单,发现上面现在启用的关于菜单选项的开发人员选项菜单。

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.

进入Chrome浏览器的主机操作系统上。键入有关:检查的URL和preSS输入

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

检查框,上面写着发现USB设备的顶部。现在应该有目前可用的铬虚拟设备的列表。找到您要调试的设备,然后单击检查链接。

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.

一个新的Chrome开发人员工具窗口应该打开包含$ C $下您当前正在查看浏览器中的网页,并应表现出的仿真选项卡,在底部提供有关设备的规格信息

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:

检查端口转发。 代理设置。 在USB驱动程序的安装。