From 2a4712577f6996fbb078dcfcd7320c397685d76a Mon Sep 17 00:00:00 2001 From: Ali Ijaz Sheikh Date: Wed, 15 Feb 2017 13:27:50 -0800 Subject: [PATCH] fix: print 'ok' after connection This change makes inspect more compatible with the old debugger. There are some Node.js core test-cases that are expecting the 'ok' to show up here. --- lib/_inspect.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/_inspect.js b/lib/_inspect.js index 2a6113b..e80a516 100644 --- a/lib/_inspect.js +++ b/lib/_inspect.js @@ -175,6 +175,7 @@ class NodeInspector { return this.client.connect() .then(() => { debuglog('connection established'); + this.stdout.write(' ok'); }, (error) => { debuglog('connect failed', error); // If it's failed to connect 10 times then print failed message