Detecting JavaScript errors in Chrome

后端 未结 3 1451
终归单人心
终归单人心 2021-02-03 23:37

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 indicati

相关标签:
3条回答
  • 2021-02-04 00:05

    No. Even calling console.log will not display the console.

    0 讨论(0)
  • 2021-02-04 00:16

    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

    0 讨论(0)
  • 2021-02-04 00:28

    I think you cannot open the console directly from your JavaScript code. And as far as I know, only Opera has the option to display the console automatically, right after any error occurs.

    0 讨论(0)
提交回复
热议问题