Skip to content

Instantly share code, notes, and snippets.

@pmoelgaard
Created October 4, 2013 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmoelgaard/6819670 to your computer and use it in GitHub Desktop.
Save pmoelgaard/6819670 to your computer and use it in GitHub Desktop.
Display the current call stack
function Stack() { try { throw Error() } catch(ex) { return ex.stack } }
print( Stack() );
/*
PRINTS:
Error()@:0
Stack()@test.js:1
@test.js:3
/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment