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