[debugger] added setBreakpoint and clearBreakpoint to help message

group commands in help message, added shortcuts info
pull/22966/head
Fedor Indutny 2011-09-14 16:36:26 +07:00 committed by Ryan Dahl
parent 1dd3b68c4f
commit d2dadf32db
1 changed files with 22 additions and 15 deletions

View File

@ -617,24 +617,31 @@ Client.prototype.fullTrace = function(cb) {
var commands = [ var commands = [
'help', [
'run', 'run (r)',
'restart', 'cont (c)',
'cont', 'next (n)',
'next', 'step (s)',
'step', 'out (o)',
'out', 'backtrace (bt)',
'repl', 'setBreakpoint (sb)',
'backtrace', 'clearBreakpoint (cb)',
'breakpoints', ],
'kill', [
'list', 'repl',
'scripts', 'restart',
'version' 'kill',
'list',
'scripts',
'breakpoints',
'version'
]
]; ];
var helpMessage = 'Commands: ' + commands.join(', '); var helpMessage = 'Commands: ' + commands.map(function(group) {
return group.join(', ');
}).join(',\n');
function SourceUnderline(sourceText, position) { function SourceUnderline(sourceText, position) {