在 Firefox 中调试时隐藏来自控制台的虚假消息
Hide spurious messages from console while debugging in Firefox
我无法通过大量不相关的消息从我的应用程序中看到相关的错误和警告,包括:
- 不安全的内容警告(我现在无能为力)
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。
我无法通过大量不相关的消息从我的应用程序中看到相关的错误和警告,包括:
- 不安全的内容警告(我现在无能为力)
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。