且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检测Chrome中的JavaScript错误

更新时间:2022-10-14 19:02:27

Chrome本身无法提醒您发生Javascript错误。但是,当发生Javascript错误时,此Chrome扩展程序将在地址栏中显示警告图标: $ b

https://github.com/barbushin/javascript-errors-notifier



扩展名可以是安装在这里:



https:// chrome .google.com / webstore / detail / jafmfknfnkoekkdocjiaipcnmkklaajd


Chrome does not appear to give any indication that a page has JavaScript errors, unless you open up the JavaScript Console to check.

Is there any way to have an indication that there were errors, and then automatically open the JavaScript Console? Can the JavaScript console be opened from JavaScript?

Chrome does not have a native ability to alert you to Javascript errors. However, this Chrome extension will show an alert icon in the address bar when a Javascript error occurs:

https://github.com/barbushin/javascript-errors-notifier

The extension can be installed here:

https://chrome.google.com/webstore/detail/jafmfknfnkoekkdocjiaipcnmkklaajd