Skip to content

Commit

Permalink
src: read break_node_first_line from the inspect options
Browse files Browse the repository at this point in the history
There are cases where the debug_options() on the env are
different to the options that were passed into inspector::Agent.

PR-URL: nodejs#28034
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
MarshallOfSound authored and Trott committed Jul 30, 2019
1 parent 816db9e commit 4208158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ int Environment::InitializeInspector(

profiler::StartProfilers(this);

if (options_->debug_options().break_node_first_line) {
if (inspector_agent_->options().break_node_first_line) {
inspector_agent_->PauseOnNextJavascriptStatement("Break at bootstrap");
}

Expand Down

0 comments on commit 4208158

Please sign in to comment.