Skip to content
Permalink
Browse files

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>
  • Loading branch information...
MarshallOfSound authored and targos committed Jun 19, 2019
1 parent 085eb48 commit 406c50c1d49399e0ed53c0f7fb877e4d02338cb6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/node.cc
@@ -248,7 +248,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");
}

0 comments on commit 406c50c

Please sign in to comment.
You can’t perform that action at this time.