Google Chrome Developer Tools has stopped logging output and errors to the console?

拥有回忆 提交于 2019-12-01 03:46:34

问题


I'm currently running Google Chrome version 31.0.1622.7 and since about 2 days ago my dev tools stopped logging any of my output (e.g. console.log("Blah.."), or displaying any errors to the console. If an error occurs I can see the red error icon in the bottom right of the window, but if I click on the icon it doesn't show the error details in the console window or highlight the error in the source.

I have tried re-installing Chrome and the problems persists. Is anyone else experiencing this issue, and/or have a solution to it?


回答1:


On the bottom of the devtools window, to the left of the error and warning icons, there should be a set of console output filter buttons. See below for a description of the filter options. Note the funnel button to the left of the "All" button.

You must check the type of output you want in the funnel-menu. The funnel menu is active for all filter-button options. So if you select the "Logs" button but have "Logging" unchecked in the funnel-menu, there will be no logging output. Both funnel-menu and filter-buttons can be multi-selected. Ctrl-click, Windows, or Cmd-click, OSX, to select multiple filter-buttons.

From the docs

  • All—Shows all console output.
  • Errors—Only show output from console.error()
  • Warnings—Only show output from console.warn()
  • Logs—Only show output from console.log(), console.info() and console.debug().
  • Debug—Only show output from console.timeEnd() and other console output



回答2:


I had same problem and i solved by Restore defaults and reload chrome settings.

You can follow this way:

  1. Open DevTools by pressing F12 or ctrl + shift + i.
  2. Press F1 or click on tree dots on the top right corner and select settings in this menu.
  3. Scroll at the bottom or to the right of screen and press [restore defaults and reload] button.



回答3:


I had this same problem (for five frustrating days) and it was because I had inadvertently typed something in the "Filter" field. And then once I deleted that, all my messages came back.



来源:https://stackoverflow.com/questions/18655354/google-chrome-developer-tools-has-stopped-logging-output-and-errors-to-the-conso

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