Chrome开发工具控制台完全空白 [英] Chrome dev tools console completely blank
问题描述
问题不在于我的 console.log
没有打印在控制台中。问题在于控制台最初是空白的。我需要来回切换标签才能正常工作。重现步骤:
1.打开Google chrome
2.打开某个页面
3.使用Ctrl + Shift + I或F12打开控制台
我甚至重新安装浏览器(我保持设置,因为我无法删除所有内容)。当然,我删除了所有的扩展,并禁用了所有的插件。仍然是同样的事情。是否有任何应用程序缓存可以删除以解决问题。
以下是截图:
PS
您看到的错误实际上来自当前页面。它不是来自控制台。下面是我在开发工具中看到的开发开发工具:
未捕获的TypeError:无法调用undefined inspector的方法'statusBarResized'。 js:2181
所有这一切都发生在浏览器的最新更新之后。
您的偏好可能已损坏。如果您可以重现该错误,请通过 http://crbug.com/new 打开一张票。
重设首选项以解决问题。它们保存在 chrome-devtools:// devtools
的localStorage中,因此您需要打开devtools的开发工具(https://stackoverflow.com/a/21149275/938089 ),以及:
- 运行
localStorage.clear()
(切换到控制台选项卡或按Esc打开抽屉)
- 或 转到资源,本地存储并逐个删除开发工具的所有项目。
The problem is not that my
console.log
is not printed in the console. The problem is that the console is initially blank. I need to switch the tabs back and forth to get it working. Steps to reproduce: 1. Open Google chrome 2. Open some page 3. Open the console with Ctrl+Shift+I or F12I even reinstall the browser (I kept the settings, because I can't afford to delete everything). Of course I removed all the extensions and disabled all the plugins. Still the same thing. Is there any application cache which I could delete to fix the problem.
Here is a screenshot:
P.S. The error which you see is actually from the current page. It is not from the console. Here is what I see when open dev tools inside dev tools:
Uncaught TypeError: Cannot call method 'statusBarResized' of undefined inspector.js:2181
And all this happen after the latest big update of the browser.
解决方案Your preferences have probably become corrupted. If you can reproduce the bug, please open a ticket at http://crbug.com/new.
Reset the preferences to resolve the issue. These are saved in localStorage on
chrome-devtools://devtools
, so you need to open the devtools of the devtools (step 1-2 of https://stackoverflow.com/a/21149275/938089), and either:- Run
localStorage.clear()
(switch to the Console tab or press Esc to open a drawer) - OR Go to Resources, Local Storage and delete all items of the dev tools one by one.
这篇关于Chrome开发工具控制台完全空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
- Run