【问题标题】:inspecting mobile web page with chrome devtools results in blank screen使用 chrome devtools 检查移动网页会导致空白屏幕
【发布时间】:2018-06-18 01:17:57
【问题描述】:

无法在最新版本的 Chrome 桌面浏览器中通过 USB 连接在 Android (Galaxy S8) 上的 Chrome 中调试运行的网页。 尝试检查移动设备上运行的网页会导致 blank page.

当我检查桌面 Chrome 浏览器中出现的空白页面时,我得到了 following error

Uncaught TypeError: InspectorFrontendHost.isUnderTest is not a function
    at Object.Host.isUnderTest (inspector.js:930)
    at Main.Main._gotPreferences (inspector.js:8301)
    at DevToolsAPIImpl.embedderMessageAck (devtools_compatibility.js:33)
    at <anonymous>:1:13

【问题讨论】:

  • 我在运行 Chrome 版本 65.0.3315.3 (Official Build) dev (64-bit) 以及 65.0.3318.0 canary 的 Windows 和 Linux 中遇到了同样的问题。
  • 我也遇到了这个问题。 FWIW,Chromium 中有一个错误,请在此处跟踪:Mobile remote debugging window is blank

标签: android google-chrome google-chrome-devtools web-inspector


【解决方案1】:

同样的问题。 但我找到了解决问题的方法。 在尝试我将在这里介绍的解决方案之前,尝试重新启动桌面和安卓的 chrome,重新启动手机。禁用 about://flags 上的一些实验性标志是因为我怀疑其中一些。但是这些步骤都没有解决。

然后我看到 Android 上的 Chrome 是 v65,而我的桌面是 v64。

所以:

  1. 删除了带有 dpkg -r google-chrome-stable 的 Chrome 版本 64.0.3282.186-1
  2. https://www.google.com/chrome/下载最新版本
  3. ..并使用 dpkg -i google-chrome-stable_current_amd64.deb 安装了 Chrome 版本 65.0.3325.181-1

之前:

# dpkg -l | grep chrome
ii  google-chrome-stable                        64.0.3282.186-1                                     amd64        The web browser from Google

之后:

# dpkg -l | grep chrome
ii  google-chrome-stable                        65.0.3325.181-1                                     amd64        The web browser from Google

问题解决了! 现在它正在很好地检查 android 选项卡!

【讨论】:

    猜你喜欢
    • 2020-06-16
    • 2021-05-21
    • 1970-01-01
    • 2018-06-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-12
    • 1970-01-01
    相关资源
    最近更新 更多