Skip to content

Instantly share code, notes, and snippets.

@mbergal
Created July 30, 2012 04:40
Show Gist options
  • Save mbergal/3204698 to your computer and use it in GitHub Desktop.
Save mbergal/3204698 to your computer and use it in GitHub Desktop.
Node stack trace
function foo()
{
bar()
}
function bar()
{
throw new Error( "test" )
}
foo()
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: test
at bar (D:\Users\Misha\Projects\UofI.Powershell.Tools\PSClass\test\a.js:8:11)
at foo (D:\Users\Misha\Projects\UofI.Powershell.Tools\PSClass\test\a.js:3:5)
at Object.<anonymous> (D:\Users\Misha\Projects\UofI.Powershell.Tools\PSClass\test\a.js:11:1)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment