fix: correctly support the --inspect-brk-node flag (#23903)

This commit is contained in:
Samuel Attard 2020-06-02 15:02:54 -07:00 committed by GitHub
parent 512e1541c6
commit 087567655a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {