trepanjs
Version:
A gdb-like debugger for nodejs. It is in the style of the trepanning debuggers.
24 lines (21 loc) • 538 B
JavaScript
// Copyright 2015 Rocky Bernstein
/*============================================================
Debugger 'show width' command.
====================================================*/
function Init(name, subcmd) {
return {
help: "**show('width')**\n\
\n\
Show the number of characters the debugger thinks are in a line.\n\
Examples:\n\
---------\n\
show('width')\n\
See also:\n\
---------\n\
`set('width', ...)`",
run: function(intf, value) {
intf.print('width: ' + intf.displayWidth);
}
}
}
exports.Init = Init;