Fix node_debugger api changes

* _debugWaitConnect => _breakFirstLine
  * Use default thread pool size specified by node.cc
This commit is contained in:
deepak1556 2017-11-06 19:53:18 +05:30 committed by Cheng Zhao
parent 11f7bb34fc
commit ed4482d7a0

View file

@ -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);