Skip to content

Commit fbbcd1a

Browse files
Jan Kremsitaloacasas
Jan Krems
authored andcommitted
lib: Fix swallowed events in inspect integration
PR-URL: #11869 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 9cc712c commit fbbcd1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/internal/bootstrap_node.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@
8181

8282
} else if (process.argv[1] === 'inspect') {
8383
// Start the debugger agent
84-
NativeModule.require('node-inspect/lib/_inspect').start();
84+
process.nextTick(function() {
85+
NativeModule.require('node-inspect/lib/_inspect').start();
86+
});
8587

8688
} else if (process.argv[1] === '--remote_debugging_server') {
8789
// Start the debugging server

0 commit comments

Comments
 (0)