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


当前回答

如果你在windows上,你需要为你的手机安装驱动程序。你可以在这里买到。

如果它仍然不工作,我已经通过手动重新启动Android调试桥来幸运地连接。更多信息在这里。

其他回答

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

今天三星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开发工具中,几秒钟后就可以连接了。

不客气

ADB必须运行。去看看

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

我要做的是禁用“发现网络目标”在chrome://inspect/#设备。

这是唯一解决了它在我的设置(chrome版本78.0.3904.97 deepinOS/debian)。

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

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.

下面是该方法的源代码