Last active
December 19, 2015 20:48
-
-
Save thomasthesecond/6015482 to your computer and use it in GitHub Desktop.
Show JavaScript errors in Xcode. Put this script above all other scripts.
This file contains hidden or 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
window.onerror = function(message, url, lineNumber) { | |
console.log('Error: ' + message + ' in ' + url + ' at line ' + lineNumber); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment