在Firefox中调试时隐藏来自控制台的虚假消息

问题描述 投票:1回答:1

我无法通过大量不相关的消息查看我的应用中的相关错误和警告,包括:

  • 不安全的内容警告(我现在无能为力)
  • Strict-Transport-Security警告(不知道,不是我的区域)
  • Error: WebGL warning: texImage2D显然是由我正在使用的图书馆生成的,我无能为力。
  • Loading failed for the <script> - 由于我使用的广告拦截软件。
  • Content Security Policy: Couldn’t process unknown directive ‘report-to’不知道,不是我的区域。

我只能找到隐藏所有错误的方法,或隐藏所有警告。

有没有办法阻止某些消息出现在日志中?

firefox logging console firefox-developer-tools
1个回答
1
投票

不幸的是,Firefox DevTools中没有这样的功能(从Firefox 59开始)。不过前段时间我是requested this in bug 1255311

另外,我只是created another bug report covering several other console filtering feature requests

© www.soinside.com 2019 - 2024. All rights reserved.