Method description:
Output the current call stack to the standard error stream.
grammar:
Copy the codeThe code is as follows:
(label)
Receive parameters:
label
example:
Copy the codeThe code is as follows:
();
//Run result:
Trace:
at Object.<anonymous> (/home/byvoid/ : 1: 71)
at Module._compile (:441:26)
at Object..js (:459:10)
at (:348:31)
at Function._load (:308:12)
at Array.0 (:479:10)
at EventEmitter._tickCallback (:192:40)
Source code:
Copy the codeThe code is as follows:
= function() {
// TODO probably can to do this better with V8's debug object once that is
// exposed.
var err = new Error;
= 'Trace';
= (this, arguments);
(err, );
();
};