适用于Android的Google Chrome浏览器远程调试-"localhost:9222"无法使用 [英] Google Chrome for Android Remote Debugging - "localhost:9222" Not Available

查看:486
本文介绍了适用于Android的Google Chrome浏览器远程调试-"localhost:9222"无法使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照以下步骤启用远程调试( https://developers.google .com/chrome/mobile/docs/debugging ).当我到达第4步时,Chrome浏览器(桌面版)将返回此网页不可用".

I'm following the steps to enable remote debugging (https://developers.google.com/chrome/mobile/docs/debugging). When I reach step 4, Chrome for Desktop returns with "This webpage is not available".

在Android版Chrome浏览器中选中了启用USB Web调试".

"Enable USB Web Debugging" is checked in Chrome for Android.

在我的设备(rooted Nexus S,CM9)上启用了"USB调试".

"USB Debugging" is enabled on my device (rooted Nexus S, CM9).

"adb设备"命令返回"设备号设备".

The "adb devices" command return with, "device number device".

"adb forward ..."命令返回: *守护程序未运行.现在在端口5037上启动它* *守护程序成功启动*

The "adb forward..." command returns with: * daemon not running. starting it now on port 5037 * * daemon started successfully *

我正在Windows 7上以管理员身份运行最新的ADB.

I'm running the latest ADB on Windows 7, cmd as Administrator.

推荐答案

我发现必须在Chrome和设备上启用USB调试.

I found that I had to have USB debugging enabled on Chrome and on my device.

  1. Chrome for Mobile-设置>开发人员工具> [x]启用USB Web调试
  2. 设备-设置>开发者选项> [x] USB调试
  3. 将设备连接到计算机
  4. 在计算机上启用端口转发

  1. Chrome for Mobile - Settings > Developer Tools > [x] Enable USB Web debugging
  2. Device - Settings > Developer options > [x] USB debugging
  3. Connect Device to Computer
  4. Enable port forwarding on Computer

C:\ adb转发tcp:9222 localabstract:chrome_devtools_remote

C:\adb forward tcp:9222 localabstract:chrome_devtools_remote

在Chrome的计算机版中转到http://localhost:9222

Go to http://localhost:9222 in Chrome for Computer

这篇关于适用于Android的Google Chrome浏览器远程调试-"localhost:9222"无法使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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