简体   繁体   English

chrome检查闪烁,远程调试

[英]chrome inspect blinking with remote debugging

I'm trying to use Chrome's support for remote debugging with my Android device. 我正在尝试使用Chrome支持我的Android设备进行远程调试。 I've been successful doing this many times, even though it is a bit tricky to setup up. 尽管设置起来有点棘手,但我已经成功地做了很多次。

(I need 'port forwarding' and 'virtual host mapping' so my device can access domain names on my local server.) (我需要'端口转发'和'虚拟主机映射',以便我的设备可以访问我本地服务器上的域名。)

The problem is that (today) chrome://inspect shows the tabs on my device for only a second, then hides them, then shows them again, then hides them... 问题是(今天)chrome:// inspect显示我的设备上的标签只有一秒钟,然后隐藏它们,然后再次显示它们,然后隐藏它们......

When Chrome hides all the tabs on my device, the following message appears: 当Chrome隐藏设备上的所有标签时,会显示以下消息:

Pending authentication: please accept debugging session on the device. 待认证:请接受设备上的调试会话。

Bad Blink 坏眨眼

待认证闪烁

Good Blink 好眨眼

设备选项卡闪烁

I see no notification on my device that I can 'accept'. 我在设备上看不到任何可以“接受”的通知。

Even stranger, if I am quick to click on my host, I actually seem to be able to able to use the dev tools for the device like in previous successful situations. 更奇怪的是,如果我快速点击我的主机,我实际上似乎能够像以前的成功情况一样使用设备的开发工具。

Why is chrome://inspect blinking and how can I fix it? 为什么chrome://检查闪烁,我该如何解决?

My setup 我的设置

  • Device: Android 5.0 Galaxy S4 for AT&T, with Developer options enabled. 设备:适用于AT&T的Android 5.0 Galaxy S4,启用了Developer选项。
  • Device's wifi settings require Proxy, with info for Charles running on host. 设备的wifi设置需要代理,其中包含Charles在主机上运行的信息。
  • Device connected via USB. 设备通过USB连接。
  • chrome://inspect has Port Forwarding enabled. chrome:// inspect启用了Port Forwarding。
  • Chrome: Version 44.0.2403.157 m. Chrome:版本44.0.2403.157 m。
  • Android bridge performed by starting Android Studio (version 1.3.1). 通过启动Android Studio(版本1.3.1)执行Android桥接。

Thanks to @SOreadytohelp for the helpful comment. 感谢@SOreadytohelp提供了有用的评论。

I borrowed this from the chromium bug report : 我从铬虫报告中借用了这个:

Downgrading Android SDK Platform-tools from revision 23 to revision 21 will solve the issue 将Android SDK平台工具从版本23降级到版本21将解决该问题

Same behavior here: neither Galaxy S4 nor Galaxy S6 Edge with Lollipop were available on the chrome://inspect tab. 这里的行为相同:在chrome:// inspect选项卡上都没有Galaxy S4和Galaxy S6 Edge with Lollipop。 I develop an Ionic/Cordova app and downgrade isn't an option. 我开发了Ionic / Cordova应用程序并且降级不是一种选择。 But if you download latest version of Chrome Canary the device is available to inspect and I can debug again. 但是如果您下载最新版本的Chrome Canary,该设备可供检查,我可以再次调试。

You just have to upload your chrome for android, and it will work. 你只需要为Android上传你的chrome,它就可以了。

I also came across this problem, but as I updated my chrome for android, the problem got sorted out and now it is working fine. 我也遇到过这个问题,但是当我更新我的chrome for android时,问题得到解决,现在它运行正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM