gpt4 book ai didi

javascript - Firefox - 启用 Javascript 错误报告

转载 作者:数据小太阳 更新时间:2023-10-29 06:12:50 25 4
gpt4 key购买 nike

如何让 Firefox 在每个 Javascript 错误时弹出一些东西?我不想为这个基本功能使用附加组件,我不需要花哨的调试或任何东西,只是立即查看是否有 Javascript 错误以及它在哪一行。

我尝试了 about:config 并将 devtools.errorconsole.enabled 设置为 true,但它仍然不会报告错误(IE 和 Opera 会)。

最佳答案

Firefox 使用错误控制台来显示在网页上发现的错误。

要查看它,请按 ctrl + shift + j

Microsoft Internet Explorer 等其他浏览器已选择提醒默认发现的错误,这就是为什么您会在弹出窗口中看到它们。


可以在 MDN 上看到错误控制台页面:

The Error Console is a tool available in most Mozilla-based applications that is used for reporting errors in the application chrome and in web pages user opens. It reports JavaScript-related errors and warnings, CSS errors and arbitrary messages from chrome code. In Firefox, the Error Console can be opened from the tools menu or by Ctrl-Shift-J.


对于 Firefox 上的错误立即呈现,对于任何愿意使用附加组件的人:

Console2可以选择在发现错误时自动获得焦点。

enter image description here


Web Developer包含三个图标,一个用于DocType,一个用于CSS,另一个用于JS错误,让您知道何时发生错误。

enter image description here

关于javascript - Firefox - 启用 Javascript 错误报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11166603/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com