Fix node_debugger api changes
* _debugWaitConnect => _breakFirstLine * Use default thread pool size specified by node.cc
This commit is contained in:
parent
11f7bb34fc
commit
ed4482d7a0
1 changed files with 4 additions and 4 deletions
|
@ -35,17 +35,17 @@ void NodeDebugger::Start() {
|
||||||
|
|
||||||
if (options.inspector_enabled()) {
|
if (options.inspector_enabled()) {
|
||||||
// Use custom platform since the gin platform does not work correctly
|
// 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(
|
platform_.reset(new node::NodePlatform(
|
||||||
/* thread_pool_size */ 0,
|
/* thread_pool_size */ 4, env_->event_loop(),
|
||||||
env_->event_loop(),
|
|
||||||
/* tracing_controller */ nullptr));
|
/* tracing_controller */ nullptr));
|
||||||
|
|
||||||
// Set process._debugWaitConnect if --inspect-brk was specified to stop
|
// Set process._debugWaitConnect if --inspect-brk was specified to stop
|
||||||
// the debugger on the first line
|
// the debugger on the first line
|
||||||
if (options.wait_for_connect()) {
|
if (options.wait_for_connect()) {
|
||||||
mate::Dictionary process(env_->isolate(), env_->process_object());
|
mate::Dictionary process(env_->isolate(), env_->process_object());
|
||||||
process.Set("_debugWaitConnect", true);
|
process.Set("_breakFirstLine", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
inspector->Start(platform_.get(), nullptr, options);
|
inspector->Start(platform_.get(), nullptr, options);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue