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 = [
|
var commands = [
|
||||||
'help',
|
[
|
||||||
'run',
|
'run (r)',
|
||||||
'restart',
|
'cont (c)',
|
||||||
'cont',
|
'next (n)',
|
||||||
'next',
|
'step (s)',
|
||||||
'step',
|
'out (o)',
|
||||||
'out',
|
'backtrace (bt)',
|
||||||
'repl',
|
'setBreakpoint (sb)',
|
||||||
'backtrace',
|
'clearBreakpoint (cb)',
|
||||||
'breakpoints',
|
],
|
||||||
'kill',
|
[
|
||||||
'list',
|
'repl',
|
||||||
'scripts',
|
'restart',
|
||||||
'version'
|
'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) {
|
function SourceUnderline(sourceText, position) {
|
||||||
|
|
Loading…
Reference in New Issue