From d2dadf32dbb607d8ed6e5e6cd98a2bab70e7f8f2 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Wed, 14 Sep 2011 16:36:26 +0700 Subject: [PATCH] [debugger] added setBreakpoint and clearBreakpoint to help message group commands in help message, added shortcuts info --- lib/_debugger.js | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/lib/_debugger.js b/lib/_debugger.js index 174c56bd7ef..0126310c509 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -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) {