Browse Source

debugger: take help message from commands

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
cb71a7dab3
  1. 36
      lib/_debugger.js

36
lib/_debugger.js

@ -307,10 +307,25 @@ Client.prototype.step = function(action, count, cb) {
}; };
var commands = [
'backtrace',
'continue',
'help',
'info breakpoints',
'kill',
'list',
'next',
'print',
'quit',
'run',
'scripts',
'step',
'version',
];
var helpMessage = 'Commands: run, kill, print, step, next, ' + var helpMessage = 'Commands: ' + commands.join(', ');
'continue, list, scripts, backtrace, version, quit';
function SourceUnderline(sourceText, position) { function SourceUnderline(sourceText, position) {
if (!sourceText) return; if (!sourceText) return;
@ -402,23 +417,6 @@ function Interface() {
} }
var commands = [
'backtrace',
'continue',
'help',
'info breakpoints',
'kill',
'list',
'next',
'print',
'quit',
'run',
'scripts',
'step',
'version',
];
Interface.prototype.complete = function(line) { Interface.prototype.complete = function(line) {
// Match me with a command. // Match me with a command.
var matches = []; var matches = [];

Loading…
Cancel
Save