且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Chrome开发工具控制台完全空白

更新时间:2023-09-30 10:36:46

您的偏好可能已损坏。如果您可以重现该错误,请通过 http://crbug.com/new 打开一张票。



重设首选项以解决问题。它们保存在 chrome-devtools:// devtools 的localStorage中,因此您需要打开devtools的开发工具(https://***.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 F12

    I 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://***.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.