检测Chrome中的JavaScript错误 [英] Detecting JavaScript errors in Chrome

查看:143
本文介绍了检测Chrome中的JavaScript错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome浏览器似乎没有提供任何表明网页存在JavaScript错误的迹象,除非您打开JavaScript控制台进行检查。



有什么办法可以让指示出现错误,然后自动打开JavaScript控制台? JavaScript控制台是否可以通过JavaScript打开?

解决方案

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

这篇关于检测Chrome中的JavaScript错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆