简体   繁体   English

Chrome远程调试:清空检查标签

[英]Chrome remote debugging : empty inspect tab

Im using google chrome v35.0.1916.114 and followed the steps to enable remote debugging on my samsung trend plus GT-S7580 which runs chrome v35.0.1916.122 . 我使用谷歌浏览器v35.0.1916.114,并按照步骤启用我的三星趋势远程调试以及运行chrome v35.0.1916.122的GT-S7580。

I can effectively view the opened tabs, close them and all , but inspecting a tab gives me a blank console. 我可以有效地查看打开的选项卡,关闭它们以及所有选项卡,但检查选项卡会给我一个空白的控制台。

Any reason why it doesnt work ? 有什么理由不起作用?

I have faced same problem. 我遇到了同样的问题。 In my case I have found that version of chrome browser on windows system was 44.x but on android mobile device has 54.x. 在我的情况下,我发现Windows系统上的Chrome浏览器版本是44.x但在Android移动设备上有54.x. I just updated my windows chrome. 我刚刚更新了我的windows chrome。 And everything started working fine. 一切都开始好起来了。

Remote debugging with Chrome downloads files from https://chrome-devtools-frontend.appspot.com . 使用Chrome进行远程调试可从https://chrome-devtools-frontend.appspot.com下载文件。
Test your connection: Try to open https://chrome-devtools-frontend.appspot.com If it doesn't work, that's why you're getting an empty window. 测试你的连接:尝试打开https://chrome-devtools-frontend.appspot.com如果它不起作用,那就是你得到一个空窗口的原因。 In this case, maybe you need a VPN. 在这种情况下,您可能需要VPN。

I had the crasiest workaround: 我有最恐怖的解决方法:

Press CTRL+SHIFT+I, which opens a new developer tool for the developer tool. 按CTRL + SHIFT + I,这将为开发人员工具打开一个新的开发人员工具。 Go to console and run: window.location.reload() 转到控制台并运行:window.location.reload()

This reloads the first developer window and attaches to the original process. 这将重新加载第一个开发人员窗口并附加到原始进程。

Check with desktop chrome 1) Goto help => About Google Chrome 使用桌面镶边检查1)转到帮助=>关于Google Chrome

Check with version number 检查版本号

Check with Mobile Chrome go to Help & feedback 1) right side option => version info 查看移动Chrome浏览器转到帮助和反馈1)右侧选项=>版本信息

Check with version number 检查版本号

If both are same ... Remote device debugging will work 如果两者相同...远程设备调试将起作用

I have the problem even with Chrome 46, here is my workaround... 即使使用Chrome 46,我也遇到了问题,这是我的解决方法......

On the blank/empty Dev Tools window press ' Ctr+Shift+i '. 在空白/空的Dev Tools窗口中按' Ctr + Shift + i '。 This opens a 2nd Dev Tools window. 这将打开第二个 Dev Tools窗口。 You will see an error in the console “Uncaught TypeError: Cannot read property 'addExtensions'” and on the right one of these 2 links : 您将在控制台中看到错误“Uncaught TypeError:无法读取属性'addExtensions'”以及这两个链接中的右侧:

A) "VM45:72" => bad luck. A)“VM45:72”=>运气不好。 Close 2nd window and try again. 关闭第二个窗口,然后重试。

B) " (program):72 " => that's it. B)“ (程序):72 ”=>就是这样。 click on the link "(program):72" and the 1st debug window will work again ! 点击链接“(程序):72”,第一个调试窗口将再次运行!

It may take one to 10 times before the "(program):72" appears 在“(程序):72”出现之前可能需要一到十次

Try using chrome Version 37.0.2041.4 canary or latest on your computer. 尝试在您的计算机上使用Chrome版本37.0.2041.4 canary或latest。 I just had the same issue with the version you have but installed the latest canary and got it working. 我刚刚遇到了与您的版本相同的问题,但安装了最新的金丝雀并使其正常工作。 Hope that helps. 希望有所帮助。

打开chrome:// appcache -internals /并清除清单缓存,然后重新加载资源

在我的情况下,它启用了代理设置

No cross browsing ! 没有交叉浏览!

Jumping in quite late here, just had a similar issue. 在这里跳得很晚,只是遇到了类似的问题。 Turns out, in my case, I was using Chrome on my computer and Brave on my cellphone. 事实证明,在我的情况下,我在我的电脑上使用Chrome,在手机上使用Brave。 Important to note that Chrome will allow to inspect Chrome! 需要注意的是,Chrome会允许检查Chrome!

In my case, I can remotely focus and close tabs on the mobile Chrome that were opened directly on the phone. 就我而言,我可以远程关注并关闭直接在手机上打开的移动Chrome上的标签。 I can also "inspect" those, with a nice screencast on the dev pc. 我还可以在开发者电脑上使用精美的截屏视频“检查”这些内容。

What does not work is entering a URL on the dev pc and click Open. 什么不起作用是在开发者电脑上输入一个URL,然后单击“打开”。 That new URL is added to the list of tabs on the dev pc, but is not really opened on the phone. 该新URL将添加到开发者电脑上的选项卡列表中,但并未真正在手机上打开。 The Inspect button on that tab does not show a screencast, or just the blank one that OP asked about. 该选项卡上的Inspect按钮不会显示截屏视频,也不会显示OP询问的空白视频。

The solution is to enter the desired URL directly on the phone, then select that tab remotely on the dev pc to get a nice screen cast and debuggin situation. 解决方案是直接在手机上输入所需的URL,然后在开发者电脑上远程选择该选项卡,以获得漂亮的屏幕演员和调试情况。

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

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