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

后端 未结 3 1985
情歌与酒
情歌与酒 2021-01-13 04: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..\"),

3条回答
  •  没有蜡笔的小新
    2021-01-13 04:53

    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.

    enter image description here

    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

提交回复
热议问题