trepan-ni
Version:
Trepan debugger for Node Inspect (and based on node inspect debugger)
26 lines (21 loc) • 476 B
JavaScript
// Copyright 2018 Rocky Bernstein
;
/*========================================
Debugger 'kill' command.
==========================================*/
exports.Init = function(intf, repl) {
intf.defineCommand('kill', repl, {
paused: false,
help: `Kill the debugger.
Usage: **kill**
See also:
---------
.exit
`,
aliases: [],
run: function() {
intf.print('Terminating program..');
return intf.inspector.killChild();
}
});
};