Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit 2a47125

Browse files
committed
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.
1 parent 9708159 commit 2a47125

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/_inspect.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ class NodeInspector {
175175
return this.client.connect()
176176
.then(() => {
177177
debuglog('connection established');
178+
this.stdout.write(' ok');
178179
}, (error) => {
179180
debuglog('connect failed', error);
180181
// If it's failed to connect 10 times then print failed message

0 commit comments

Comments
 (0)