Hi I am using the stack-trace as follows:
//required stack-trace
func.todo = function (todo.id,cb){
var trace = stackTrace.get(func.todo);
console.log('Trace', trace);
//more function calls
}
The console displays the output as follows:
Trace [ callSite{},
callSite {},
callSite{},
"
"
"
"
"
callSite{}]
Proper callsite names and the objects of every call site is not displayed.
But when I use
var err= 'Something went wrong';
var trace = stackTrace.parse(err);
The proper callSites with names and their objects are displayed.
Why is this so?