mirror of https://github.com/nodejs/node.git
parent
1d7a46a588
commit
37d529f818
|
@ -785,7 +785,7 @@ Interface.prototype.handleCommand = function(cmd) {
|
|||
self._lastCommand = null;
|
||||
self.tryQuit();
|
||||
|
||||
} else if (/^r(un)?/.test(cmd)) {
|
||||
} else if (/^r(un)?$/.test(cmd)) {
|
||||
self._lastCommand = null;
|
||||
if (self.child) {
|
||||
self.restartQuestion(function(yes) {
|
||||
|
@ -805,7 +805,7 @@ Interface.prototype.handleCommand = function(cmd) {
|
|||
self.trySpawn();
|
||||
}
|
||||
|
||||
} else if (/^help/.test(cmd)) {
|
||||
} else if (/^help$/.test(cmd)) {
|
||||
console.log(helpMessage);
|
||||
term.prompt();
|
||||
|
||||
|
@ -819,7 +819,7 @@ Interface.prototype.handleCommand = function(cmd) {
|
|||
term.prompt();
|
||||
});
|
||||
|
||||
} else if (/info +breakpoints/.test(cmd)) {
|
||||
} else if (/^info(\s+breakpoint)?$/.test(cmd)) {
|
||||
if (!client) {
|
||||
self.printNotConnected();
|
||||
return;
|
||||
|
@ -867,7 +867,7 @@ Interface.prototype.handleCommand = function(cmd) {
|
|||
term.prompt();
|
||||
});
|
||||
|
||||
} else if (/^backtrace/.test(cmd) || /^bt/.test(cmd)) {
|
||||
} else if (/^b(ack)?t(race)?$/.test(cmd)) {
|
||||
if (!client) {
|
||||
self.printNotConnected();
|
||||
return;
|
||||
|
@ -905,7 +905,7 @@ Interface.prototype.handleCommand = function(cmd) {
|
|||
self.printScripts(cmd.indexOf('full') > 0);
|
||||
term.prompt();
|
||||
|
||||
} else if (/^c(ontinue)?/.test(cmd)) {
|
||||
} else if (/^c(ontinue)?$/.test(cmd)) {
|
||||
if (!client) {
|
||||
self.printNotConnected();
|
||||
return;
|
||||
|
@ -916,7 +916,7 @@ Interface.prototype.handleCommand = function(cmd) {
|
|||
self.resume();
|
||||
});
|
||||
|
||||
} else if (/^k(ill)?/.test(cmd)) {
|
||||
} else if (/^k(ill)?$/.test(cmd)) {
|
||||
if (!client) {
|
||||
self.printNotConnected();
|
||||
return;
|
||||
|
@ -934,7 +934,7 @@ Interface.prototype.handleCommand = function(cmd) {
|
|||
self.term.prompt();
|
||||
}
|
||||
|
||||
} else if (/^next/.test(cmd) || /^n/.test(cmd)) {
|
||||
} else if (/^n(ext)?$/.test(cmd)) {
|
||||
if (!client) {
|
||||
self.printNotConnected();
|
||||
return;
|
||||
|
@ -943,7 +943,7 @@ Interface.prototype.handleCommand = function(cmd) {
|
|||
// Wait for break point. (disable raw mode?)
|
||||
});
|
||||
|
||||
} else if (/^step/.test(cmd) || /^s/.test(cmd)) {
|
||||
} else if (/^s(tep)?$/.test(cmd)) {
|
||||
if (!client) {
|
||||
self.printNotConnected();
|
||||
return;
|
||||
|
@ -952,7 +952,7 @@ Interface.prototype.handleCommand = function(cmd) {
|
|||
// Wait for break point. (disable raw mode?)
|
||||
});
|
||||
|
||||
} else if (/^print/.test(cmd) || /^p/.test(cmd)) {
|
||||
} else if (/^p(rint)?$/.test(cmd)) {
|
||||
if (!client) {
|
||||
self.printNotConnected();
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue