Fix disappearance of debug banner when running meteor debug.

This was broken due to a change in Node.js which enabled support for
using `--debug` in combination with IPv6 addresses.
This commit is contained in:
Jesse Rosenberger
2017-04-25 14:30:30 -07:00
parent 78c6ac915c
commit 99fffd8670
2 changed files with 2 additions and 2 deletions

View File

@@ -145,7 +145,7 @@ DEp.connectToChildProcess = function connectToChildProcess(child) {
// port (not debugPort!), and create a connection to that port so that
// the child process can communicate with node-inspector.
child.stderr.on("data", function onData(buffer) {
var match = /debugger listening on port (\d+)/i
var match = /debugger listening on .+:(\d+)\n/i
.exec(buffer.toString("utf8"));
if (match) {
child.stderr.removeListener("data", onData);

View File

@@ -106,7 +106,7 @@ _.extend(AppProcess.prototype, {
eachline(self.proc.stderr, 'utf8', async function (line) {
if (self.debugPort &&
line.indexOf("debugger listening on port ") >= 0) {
line.indexOf("Debugger listening on") >= 0) {
Console.enableProgressDisplay(false);
return;
}