如何忽略开发工具中的某些错误?
在测试系统上,我有很多 404 错误,但现在对我来说并不重要。尽管如此,它们仍然使 Chromium 开发者工具中的控制台变得混乱,使其几乎毫无用处。
是否可以忽略某种类型的错误?在本例中,我希望不显示所有 404 错误。
On a test system I have a lot of 404 errors that are not important to me right now. Still they are cluttering the console in Chromium's Developer Tools, making it pretty much useless.
Is it possible to ignore errors of a certain type? In this case, I want all 404-errors to not be shown.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您需要过滤特定域的错误,现在可以直接使用 Chrome 开发者工具来执行此操作。只需右键单击要隐藏的错误,然后单击
Filter
=>隐藏来自...的消息
If you need to filter errors for a particular domain, you can now do this directly using Chrome Developer Tools. Simply right click on the error you want to hide and then click
Filter
=>Hide messages from...
例如; https://i.sstatic.net/IVL0U.png 显示错误,全部被阻止带有 adblock 等的客户端,我想隐藏“AdBar 错误”,所以:
基本上:
So for instance; https://i.sstatic.net/IVL0U.png shows the errors, all blocked by client with adblock etc, I want to hide "AdBar errors", so:
Basically:
不久前我有一个MVC web项目,在web.config部分,我曾经使用过这个
I had a MVC web project a while ago, in the web.config section, I used to use this