Skip to content

Commit

Permalink
lib: Fix swallowed events in inspect integration
Browse files Browse the repository at this point in the history
PR-URL: nodejs#11869
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
Jan Krems authored and jungx098 committed Mar 21, 2017
1 parent 25eb6f1 commit f9c8c7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/internal/bootstrap_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@

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

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

0 comments on commit f9c8c7b

Please sign in to comment.