|
|
@ -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 = []; |
|
|
|