From 9d613651157014ab7bce1f28cff2e8fc46da2e85 Mon Sep 17 00:00:00 2001 From: Nathan Muir Date: Sun, 6 Mar 2016 12:21:48 +1000 Subject: [PATCH] DebugEntry - Make debugging work with node-inspector v0.12.5. The matching of the `debug listening on port` message was broken when v0.12.5 of node-inspector changed the capitalisation of "debug" to "Debug". The matching is now case-insensitive. --- tools/inspector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/inspector.js b/tools/inspector.js index f9f625ab80..b4265c8b72 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+)/ + var match = /debugger listening on port (\d+)/i .exec(buffer.toString("utf8")); if (match) { child.stderr.removeListener("data", onData);