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>>(
|
std::make_shared<node::ExclusiveAccess<node::HostPort>>(
|
||||||
debug_options.host_port),
|
debug_options.host_port),
|
||||||
true /* is_main */))
|
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() {
|
void NodeDebugger::Stop() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue