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.
This commit is contained in:
Nathan Muir
2016-03-06 12:21:48 +10:00
committed by Ben Newman
parent bf2d2dcc9b
commit 9d61365115

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+)/
var match = /debugger listening on port (\d+)/i
.exec(buffer.toString("utf8"));
if (match) {
child.stderr.removeListener("data", onData);