diff --git a/atom/browser/node_debugger.cc b/atom/browser/node_debugger.cc index 7f59723d50c..9ffd449dd95 100644 --- a/atom/browser/node_debugger.cc +++ b/atom/browser/node_debugger.cc @@ -35,17 +35,17 @@ void NodeDebugger::Start() { if (options.inspector_enabled()) { // Use custom platform since the gin platform does not work correctly - // with node's inspector agent + // with node's inspector agent. We use the default thread pool size + // specified by node.cc platform_.reset(new node::NodePlatform( - /* thread_pool_size */ 0, - env_->event_loop(), + /* thread_pool_size */ 4, env_->event_loop(), /* tracing_controller */ nullptr)); // Set process._debugWaitConnect if --inspect-brk was specified to stop // the debugger on the first line if (options.wait_for_connect()) { mate::Dictionary process(env_->isolate(), env_->process_object()); - process.Set("_debugWaitConnect", true); + process.Set("_breakFirstLine", true); } inspector->Start(platform_.get(), nullptr, options);