diff options
author | Samuel Attard <sattard@slack-corp.com> | 2019-06-19 11:44:49 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-07-29 21:08:25 -0700 |
commit | 42081580ac6346570848d0430ca6852f4b236324 (patch) | |
tree | 7aeefb9c5a16b4263e771f612df6d71442a5a265 /src/node.cc | |
parent | 816db9e1927f6b6c8e283001fd788525275ede58 (diff) | |
download | android-node-v8-42081580ac6346570848d0430ca6852f4b236324.tar.gz android-node-v8-42081580ac6346570848d0430ca6852f4b236324.tar.bz2 android-node-v8-42081580ac6346570848d0430ca6852f4b236324.zip |
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: https://github.com/nodejs/node/pull/28034
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node.cc')
-rw-r--r-- | src/node.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.cc b/src/node.cc index 82128eb22a..6b6bacf5fa 100644 --- a/src/node.cc +++ b/src/node.cc @@ -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"); } |