Chrome远程调试,设备没有显示出来 [英] Chrome remote debugging, the device is not showing up

查看:1580
本文介绍了Chrome远程调试,设备没有显示出来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Android设备上的Chrome中调试网站。为此,我遵循官方远程调试指南

I'm trying to debug a Website in Chrome on an Android device. For this I'm following the official remote debugging guide.

事情正在发展到 6。确保已启用发现USB设备。,但后来点 7。使用USB电缆将您的Android设备直接连接到您的开发机器。,设备没有显示。同样在设备上,我还没有得到允许USB调试权限提示符,如 8。

Things are working up to 6. Make sure that Discover USB devices is enabled., but then in point 7. Connect your Android device directly to your development machine using a USB cable., the device is not showing up. Also on the device, I do not get the the Allow USB Debugging permission prompt as described in point 8.

设备启用了USB调试功能,Windows可以识别设备。

The device has USB Debugging enabled, and Windows recognises the device.

我可以连接到设备使用Android Studio,然后使用Chrome远程调试。但看起来像是矫枉过正,为了能够在设备上点击允许USB调试权限提示,安装几个GigaBytes。

I'm able to connect to the device using Android Studio, and then use Chrome remote debugging. But it looks like overkill to install several GigaBytes just to be able to clic ont the Allow USB Debugging permission prompt on the device.

如何在不安装Android Studio的情况下启动远程调试?

What can I do to launch remote debugging without installing Android Studio ?

推荐答案

Android设备,您应该能够从那里切换USB调试。 下载独立的ADB软件包或安装Android Studio。在命令行中运行 adb server 。连接它,然后提示接受设备的RSA密钥指纹应该出现,你应该很好去。

If you turn on Developer options on your Android device, you should be able to toggle USB Debugging from there. Download the standalone ADB package or install Android Studio. Run adb server in the command line. Connect it and then the prompt to accept the device's RSA key fingerprint should appear and you should be good to go.

文档更好地展示了step-by -step流程 https://developers.google.com/web/ tools / chrome-devtools / remote-debugging /

The docs do a better job of showing the step-by-step process https://developers.google.com/web/tools/chrome-devtools/remote-debugging/

PS如果您想在相同的两个设备上多次测试,您可以在开发人员选项中单击撤消USB调试授权以撤消所有以前连接的设备的RSA密钥。

P.S. if you'd like to test this multiple times on the same two devices you can click Revoke USB debugging authorizations in the Developer options to revoke all previously connected devices' RSA keys.

这篇关于Chrome远程调试,设备没有显示出来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆