即使按照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开发,这可能是问题所在。我希望利用这个功能从设备的角度来检查网页。


当前回答

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

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

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

其他回答

我使用过六种不同的Android设备和多种电缆,我不得不说调试器工作不稳定。有时它能看到设备,有时不能。有时重新启动Chrome会有帮助。这里有一个相关的bug https://bugs.chromium.org/p/chromium/issues/detail?id=788161,也许你可以提供你的证据。

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

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

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

今天三星Galaxy Note 9和一台没有Android Studio的Windows 10笔记本电脑做了个噩梦。下面是进行调试的工作步骤。

1)正常开启手机开发者模式,打开“USB调试”。

2)在你的电脑上安装三星USB驱动程序的Windows https://developer.samsung.com/galaxy/others/android-usb-driver-for-windows

3)在你的电脑上打开Chrome浏览器-在开发控制台打开远程设备(目前它会说没有检测到设备)。

4)通过USB数据线连接你的手机和电脑。

5)接受任何授权提示,等待电脑提示“您的设备准备好了”。

6)在您的手机上,向下滑动顶部菜单,点击“P Android系统”-在“使用USB for”下选择“MIDI”。

7)各种设置通知将出现在您的PC上,当他们完成后,您将得到授权提示调试您的手机。接受它!再等几秒钟,你会发现手机现在出现在电脑上的Chrome开发工具中,几秒钟后就可以连接了。

不客气

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

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.

下面是该方法的源代码

三星手机+ 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