Skip to content

Commit 406c50c

Browse files
MarshallOfSoundtargos
authored andcommitted
src: read break_node_first_line from the inspect options
There are cases where the debug_options() on the env are different to the options that were passed into inspector::Agent. PR-URL: #28034 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 085eb48 commit 406c50c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ int Environment::InitializeInspector(
248248

249249
profiler::StartProfilers(this);
250250

251-
if (options_->debug_options().break_node_first_line) {
251+
if (inspector_agent_->options().break_node_first_line) {
252252
inspector_agent_->PauseOnNextJavascriptStatement("Break at bootstrap");
253253
}
254254

0 commit comments

Comments
 (0)