mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Fix node_debugger api changes
* _debugWaitConnect => _breakFirstLine * Use default thread pool size specified by node.cc
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user