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