Permalink
Browse files

[debugger] group commands in help message, added shortcuts info

  • Loading branch information...
indutny committed Sep 14, 2011
1 parent 130e137 commit 663565d7068316e022ccc97aa2262161ceabc097
Showing with 22 additions and 17 deletions.
  1. +22 −17 lib/_debugger.js
View
@@ -617,26 +617,31 @@ Client.prototype.fullTrace = function(cb) {
var commands = [
- 'help',
- 'run',
- 'restart',
- 'cont',
- 'next',
- 'step',
- 'out',
- 'repl',
- 'backtrace',
- 'breakpoints',
- 'setBreakpoint',
- 'clearBreakpoint',
- '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) {

0 comments on commit 663565d

Please sign in to comment.