Skip to content

Instantly share code, notes, and snippets.

@colormono
Created August 29, 2013 18:01
Show Gist options
  • Save colormono/6381329 to your computer and use it in GitHub Desktop.
Save colormono/6381329 to your computer and use it in GitHub Desktop.
Debug errors
try{
// Your code here
// If an error occures, catch it and show me
} catch( err ){
alert( "Error at line # " + err.line.toString() + "\r" + err.toString() );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment