mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
[debugger] added setBreakpoint and clearBreakpoint to help message
group commands in help message, added shortcuts info
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user