fix: correctly support the --inspect-brk-node flag (#23903)
This commit is contained in:
parent
512e1541c6
commit
087567655a
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,11 @@ void NodeDebugger::Start() {
|
|||
std::make_shared<node::ExclusiveAccess<node::HostPort>>(
|
||||
debug_options.host_port),
|
||||
true /* is_main */))
|
||||
DCHECK(env_->inspector_agent()->IsListening());
|
||||
DCHECK(inspector->IsListening());
|
||||
|
||||
if (inspector->options().break_node_first_line) {
|
||||
inspector->PauseOnNextJavascriptStatement("Break at bootstrap");
|
||||
}
|
||||
}
|
||||
|
||||
void NodeDebugger::Stop() {
|
||||
|
|
Loading…
Reference in a new issue