Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

traceback - Node4.6

node v4.9.1
version: master
endpointsharetweet
var traceback = require('traceback'); function start() { first() } function first() { second() } var second = function() { last() } function last() { var stack = traceback(); console.log('I am ' + stack[0].name + ' from file ' + stack[0].file) for(var i = 1; i <= 3; i++) console.log(' ' + i + ' above me: ' + stack[i].name + ' at line ' + stack[i].line); } start();
Loading…

no comments

    sign in to comment