diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/_debugger.js | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/lib/_debugger.js b/lib/_debugger.js index 6392b88293..554cdaa097 100644 --- a/lib/_debugger.js +++ b/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, ' + - 'continue, list, scripts, backtrace, version, quit'; +var helpMessage = 'Commands: ' + commands.join(', '); + function SourceUnderline(sourceText, position) { 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) { // Match me with a command. var matches = []; |