trepanjs
Version:
A gdb-like debugger for nodejs. It is in the style of the trepanning debuggers.
36 lines (32 loc) • 860 B
JavaScript
;
/*========================================
Debugger 'cont' command.
Continues execution of the program.
Note that the name has to be 'cont', not 'continue'
since 'continue' is a Javascript reserved word.
However we add an alias 'continue', which works around
this.
==========================================*/
function Init(intf, Interface) {
intf.defineCommand('cont', {
help: '*cont*\n\
\n\
Leave the debugger REPL and continue execution of the program. Subsequent\n\
entry to the debugger may however occur via breakpoints or explicit calls\n\
or exceptions.\n\
\n\
Examples:\n\
--------\n\
cont',
aliases: ['c', 'continue'],
connection: true,
run: function() {
intf.pause();
intf.client.reqContinue(function(err) {
if (err) intf.error(err);
intf.resume();
});
}
});
}
exports.Init = Init;