我无法通过大量不相关的消息查看我的应用中的相关错误和警告,包括:
Strict-Transport-Security
警告(不知道,不是我的区域)Error: WebGL warning: texImage2D
显然是由我正在使用的图书馆生成的,我无能为力。Loading failed for the <script>
- 由于我使用的广告拦截软件。Content Security Policy: Couldn’t process unknown directive ‘report-to’
不知道,不是我的区域。我只能找到隐藏所有错误的方法,或隐藏所有警告。
有没有办法阻止某些消息出现在日志中?
不幸的是,Firefox DevTools中没有这样的功能(从Firefox 59开始)。不过前段时间我是requested this in bug 1255311。
另外,我只是created another bug report covering several other console filtering feature requests。