Skip to content

Instantly share code, notes, and snippets.

@thomasthesecond
Last active December 19, 2015 20:48
Show Gist options
  • Save thomasthesecond/6015482 to your computer and use it in GitHub Desktop.
Save thomasthesecond/6015482 to your computer and use it in GitHub Desktop.
Show JavaScript errors in Xcode. Put this script above all other scripts.
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