mirror of https://github.com/nodejs/node.git
[debugger] added setBreakpoint and clearBreakpoint to help message
group commands in help message, added shortcuts infopull/22966/head
parent
1dd3b68c4f
commit
d2dadf32db
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue