process.nextTick(function() { throw new Error('unhandle'); });
こうやって実行するじゃろ
$ node debug x.js < Debugger listening on port 5858 connecting to port 5858... ok break in x.js:1 > 1 process.nextTick(function() { 2 throw new Error('unhandle'); 3 });
1行目で止まってるからおまじないを唱えるじゃろ
debug> breakOnException
実行再開するじゃろ
debug> c exception in x.js:2 Error: unhandle 1 process.nextTick(function() { > 2 throw new Error('unhandle'); 3 }); debug>