Created
March 9, 2021 22:56
-
-
Save geotheory/88c2695430e4d4a8f27e7d5c295ae7bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// debug javscript errors with alerts | |
window.onerror = function (msg, url, lineNo, columnNo, error) { | |
var error_msg = ['msg: ' + msg, 'url: ' + url, 'lineNo: ' + lineNo, 'columnNo: ' + columnNo, 'error: ' + error].join('\n'); | |
window.alert(error_msg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment