Display the current call stack

by Mohan 2012-09-20 22:47:49


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





Tagged in:

559
like
0
dislike
0
mail
flag

You must LOGIN to add comments