[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 = [
'help',
'run',
'restart',
'cont',
'next',
'step',
'out',
'repl',
'backtrace',
'breakpoints',
'kill',
'list',
'scripts',
'version'
[
'run (r)',
'cont (c)',
'next (n)',
'step (s)',
'out (o)',
'backtrace (bt)',
'setBreakpoint (sb)',
'clearBreakpoint (cb)',
],
[
'repl',
'restart',
'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) {