trepan-ni
Version:
Trepan debugger for Node Inspect (and based on node inspect debugger)
26 lines (20 loc) • 465 B
JavaScript
// Copyright 2018 Rocky Bernstein
;
/*=================================
Debugger 'backtrace' command
===================================*/
exports.Init = function(intf, repl) {
intf.defineCommand('backtrace', repl, {
paused: true,
help: `Print backtrace of all stack frames.
Usage: backtrace
See also:
---------
up, down, frame
`,
aliases: ['bt', 'where'],
run: function() {
return intf.currentBacktrace;
}
});
};