Created
November 24, 2015 22:21
-
-
Save aheuermann/009cb18c75ff3752b022 to your computer and use it in GitHub Desktop.
Debugging Unknown/Unhandled Node Exception
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
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