Javascript 如何在 MAC 上的 Chrome 开发者工具中取消隐藏过滤的消息

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/44622318/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 02:39:55  来源:igfitidea点击:

How to unhide filtered messages in Chrome developer Tools on a MAC

javascriptgoogle-chrome

提问by noor h

I am in the developer view in Chrome (cmd+shift+c). Under the console tab, it shows this message

我在 Chrome (cmd+shift+c) 的开发者视图中。在控制台选项卡下,它显示此消息

7 items hidden by filters

过滤器隐藏的 7 个项目

But the issue is I have no filters set. I tried right clicking and selecting 'Filter' but the unhide all is greyed out. And tried reseting the developer console.But it didnt work, how do i fix this ?

但问题是我没有设置过滤器。我尝试右键单击并选择“过滤器”,但取消隐藏全部显示为灰色。并尝试重置开发者控制台。但它没有用,我该如何解决?

回答by wodzu

There seems to be a bug in chrome, when adding filters via the rightclick context menu:

通过右键单击上下文菜单添加过滤器时,chrome 中似乎存在一个错误:

Filter > Hide Messages from ...

Filter > Hide Messages from ...

The only thing that worked for me, was to reset the entire debugger settings

唯一对我有用的是重置整个调试器设置

Settings (F1 on Windows) > DevTools > Restore defaults and reload

Settings (F1 on Windows) > DevTools > Restore defaults and reload

回答by theghost777

Right click on console area, Filter -> Unhide All, in filter option you will see all filters. enter image description hereScreenshot

右键单击控制台区域,过滤器 -> 取消隐藏全部,在过滤器选项中您将看到所有过滤器。 截屏在此处输入图片说明

回答by Phrogz

You need to click on the circled X in the filter area, or focus the filter area and delete the text typed there.

您需要单击过滤器区域中带圆圈的 X,或聚焦过滤器区域并删除在那里键入的文本。

enter image description here

在此处输入图片说明

回答by charltoons

You must close the "console sidebar" to enable the log level filter. DevTools has this sidebar closed by default, which is why "Restore to defaults" also works.

您必须关闭“控制台侧边栏”才能启用日志级别过滤器。DevTools 默认关闭了这个侧边栏,这就是“恢复默认设置”也能工作的原因。

How to close the console sidebar

如何关闭控制台侧边栏

回答by mypeople

Had the same issue and resolved now following the below steps.

遇到了同样的问题,现在按照以下步骤解决了。

  • Right click in the browser and select Inspect
  • Go to Console
  • Click on the button shown in the screenshot and select Defaultfrom the dropdown menu.
  • 在浏览器中右键单击并选择检查
  • 进入控制台
  • 单击屏幕截图中显示的按钮,然后从下拉菜单中选择默认

enter image description here

在此处输入图片说明

回答by learner

All you need to do is to select either "Info" or "Verbase" option next to filter field to see the console log.

您需要做的就是选择过滤器字段旁边的“信息”或“Verbase”选项以查看控制台日志。

回答by Mohideen bin Mohammed

in your chrome console,

在您的 chrome 控制台中,

click default levels-> enable/check all values

单击默认级别-> 启用/检查所有值

refresh your page ..

刷新您的页面..

now it wont filter anything if you checked all...

现在,如果您检查所有内容,它将不会过滤任何内容...

enter image description here

在此处输入图片说明

回答by Irving Z

I had same problem but selecting "info" or "verbose" didn′t unhide errors, what was hidding them for me was, "Hide network" inside console settings, was checked, so i just unchecked and no "items hidden by filters" showing anymore.

我有同样的问题,但选择“信息”或“详细”并没有取消隐藏错误,对我来说隐藏它们的是,控制台设置中的“隐藏网络”被选中,所以我只是取消选中并且没有“过滤器隐藏的项目”不再显示。

回答by Abby

I had the same issue the other day. Go to the console in your dev tools and right click on an error message. Hover over 'filter' option, then select unhide all.

前几天我遇到了同样的问题。转到开发工具中的控制台,然后右键单击错误消息。将鼠标悬停在“过滤器”选项上,然后选择全部取消隐藏。

console > right click error message > filter > unhide all

控制台>右键单击错误消息>过滤器>取消隐藏所有

回答by Harry

Check for a small input box above the console, You may have set a entered some text once as a filter and forgot to clear it.

检查控制台上方的小输入框,您可能将输入的一些文本设置为过滤器,但忘记清除它。