Skip to content

Instantly share code, notes, and snippets.

@aheuermann
Created November 24, 2015 22:21
Show Gist options
  • Save aheuermann/009cb18c75ff3752b022 to your computer and use it in GitHub Desktop.
Save aheuermann/009cb18c75ff3752b022 to your computer and use it in GitHub Desktop.
Debugging Unknown/Unhandled Node Exception
process.on('uncaughtException', function(err) {
console.log("uncaughtException:", err && err.stack);
});
process.on('exit', function() {
console.log("exit", arguments, new Error().stack);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment