Chrome dev tools console completely blank

蓝咒 提交于 2019-11-30 01:47:55

问题


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.


回答1:


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.



回答2:


The suggestion of clearing localStorage either didn't work or only worked temporarily for me. As mentioned in some of the comments, the solution that worked for me was to:

  1. Open developer tools
  2. Open settings pane from top right (or F1)
  3. Click the 'Restore defaults and reload' button

I should also mention that I'm using Google Chrome 53.0.2754.0 canary (64-bit).



来源:https://stackoverflow.com/questions/21348759/chrome-dev-tools-console-completely-blank

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!