From 99fffd86708ce6fac7cd62861018beb1d59c7beb Mon Sep 17 00:00:00 2001 From: Jesse Rosenberger Date: Tue, 25 Apr 2017 14:30:30 -0700 Subject: [PATCH] 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. --- tools/inspector.js | 2 +- tools/runners/run-app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/inspector.js b/tools/inspector.js index 21cc3ebaf6..c23087a135 100644 --- a/tools/inspector.js +++ b/tools/inspector.js @@ -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); diff --git a/tools/runners/run-app.js b/tools/runners/run-app.js index d1dbb1852f..26be252981 100644 --- a/tools/runners/run-app.js +++ b/tools/runners/run-app.js @@ -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; }