Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
[debugger] added setBreakpoint and clearBreakpoint to help message
Browse files Browse the repository at this point in the history
group commands in help message, added shortcuts info
  • Loading branch information
indutny authored and ry committed Sep 14, 2011
1 parent 1dd3b68 commit d2dadf3
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions lib/_debugger.js
Expand Up @@ -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) {
Expand Down

0 comments on commit d2dadf3

Please sign in to comment.