enable break on exception
/* | |
* filename: index.js | |
* run: node--debug-brk index.js | |
* tested in node v0.10.30 | |
*/ | |
global.v8debug.Debug.setBreakOnException(); // enable it, global.v8debug is only defined when --debug flag is set | |
setTimeout(function() { | |
bogus(); // should break here, "`bogus` is not defined" | |
},2000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
should be used to match you article name.