Google Chrome开发人员工具已停止将输出和错误记录到控制台? [英] Google Chrome Developer Tools has stopped logging output and errors to the console?

查看:126
本文介绍了Google Chrome开发人员工具已停止将输出和错误记录到控制台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在运行谷歌浏览器版本31.0.1622.7,从大约2天前开始,我的开发工具停止记录我的任何输出(例如 console.log(Blah ..),或者向控制台显示任何错误。如果发生错误,我可以看到窗口右下方的红色错误图标,但是如果我点击该图标,它不会在控制台中显示错误详细信息窗口或突出显示源中的错误。



我试过重新安装Chrome并且问题依然存在。是否有其他人遇到此问题,和/或是否有解决方案它在?devtools窗口的底部,在错误和警告图标的左侧,应该有一个集合。

控制台输出过滤器按钮,请参阅下面的过滤器选项说明 在全部按钮左侧注意漏斗按钮
$ b



您必须在漏斗菜单中检查您想要的输出类型。漏斗菜单对所有过滤器按钮选项都有效。因此,如果您选择日志按钮但未在漏斗菜单中选中日志记录,则不会有日志输出。漏斗菜单和筛选按钮都可以多选。 Ctrl +单击,Windows或Cmd单击OSX,以选择多个过滤按钮。



docs


  • 全部显示所有控制台输出。
  • 错误 - 仅显示console.error()的输出

  • 警告 - 仅显示console.warn() li>
  • 仅Logs-only显示console.log(),console.info()和console.debug()的输出。 console.timeEnd()和其他控制台输出


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?

解决方案

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

这篇关于Google Chrome开发人员工具已停止将输出和错误记录到控制台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆