即使按照https://developer.chrome.com/docs/devtools/remote-debugging/上列出的步骤操作,我还是无法在我的三星Galaxy S4上使用DevTools Devices功能

我的设备有Chrome v32和Chrome Beta v33,而我的个人电脑有Chrome v33和Chrome Canary v35。

我的设备上已开启USB调试,并且已安装设备驱动程序。我从未从上面的链接中得到步骤3中概述的提示,以批准RSA密钥指纹,但设备确实连接到我的PC以允许媒体传输。我甚至根据上面的链接撤销了所有USB调试授权。

我的电脑上没有任何额外安装的东西用于Android开发,这可能是问题所在。我希望利用这个功能从设备的角度来检查网页。


当前回答

执行adb命令行。像这样

adb devices

其他回答

如果你没有安装ADT (Android开发工具包):

下载android SDK platform-tools.zip,执行命令"adb devices",成功检测到基于android的三星Galaxy手机。 它开始一些恶魔,发现附加设备,我也能看到它在铬金丝雀检查标签。

以前我也安装了“通用ADB驱动程序”,但不确定这是否是必需的

ADB必须运行。去看看

C:\Users\yourUserName\AppData\Local\Android\Sdk\platform-tools并运行adb设备,守护进程应该启动,然后显示所有连接的设备。

上面提到的答案对我都没用。然而,对我有用的是端口转发。步骤如下:

Ensure you have adb installed (steps here for windowd, mac, ubuntu) Ensure you have chrome running on your mobile device On your PC, run the following from command line: adb forward tcp:9222 localabstract:chrome_devtools_remote On running the above command, accept the authorization on your mobile phone. Below is the kind of output I see on my laptop: $:/> adb forward tcp:9222 localabstract:chrome_devtools_remote * daemon not running. starting it now on port 5037 * * daemon started successfully * Now open your chrome and enter 'localhost:9222' and you shall see the active tab to inspect.

下面是该方法的源代码

只是在这里添加这个供参考,我试图连接LG G5安卓手机,Chrome开发工具没有识别它,直到我下载了LG usb驱动程序在这里。

祝大家好运!

三星手机+ Windows电脑

首先,你需要打开手机的USB调试:

设置/关于电话/软件信息/版本号 (点击7次打开开发者模式) 设置/开发人员选项/ USB调试(打开)

然后在你的电脑上:

Install Samsung USB driver https://developer.samsung.com/mobile/android-usb-driver.html Install ADB https://forum.xda-developers.com/showthread.php?t=2317790 (in the forum scroll down to the section "Downloads" to get the newest version of ADB) After ADB installation CMD should pop up -> start ADB with command "adb devices" (for example "C:\Program Files (x86)\Minimal ADB and Fastboot> adb devices") Connect your phone to your PC with USB cable Alert about the connection should pop up on your phone (allow it) In Chrome on your PC open Developer tools / More tools / Remote devices and you should finally see your phone being detected