Browse Source

Fix node_debugger api changes
* _debugWaitConnect => _breakFirstLine
* Use default thread pool size specified by node.cc

deepak1556 7 years ago
parent
commit
ed4482d7a0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      atom/browser/node_debugger.cc

+ 4 - 4
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);