From 43bd1dba0ca1d5a4cd4a26ee46f005cf5c1daefe Mon Sep 17 00:00:00 2001 From: Jan Krems Date: Wed, 15 Mar 2017 12:42:33 -0700 Subject: [PATCH] lib: Fix swallowed events in inspect integration --- lib/internal/bootstrap_node.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js index 526cf7f3f64927..ba5cf949d7bd09 100644 --- a/lib/internal/bootstrap_node.js +++ b/lib/internal/bootstrap_node.js @@ -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