Skip to content

Commit

Permalink
fixup! src: use PauseOnNextJavascriptStatement to implement --inspect…
Browse files Browse the repository at this point in the history
…-brk-node
  • Loading branch information
joyeecheung committed Feb 17, 2019
1 parent f9741a0 commit 19bbf7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,13 @@ MaybeLocal<Value> RunBootstrapping(Environment* env) {
std::vector<Local<Value>> primordials_args = {
env->primordials()
};

#if HAVE_INSPECTOR
if (env->options()->debug_options().break_node_first_line) {
env->inspector_agent()->PauseOnNextJavascriptStatement(
"Break at bootstrap");
}
#endif // HAVE_INSPECTOR
MaybeLocal<Value> primordials_ret =
ExecuteBootstrapper(env,
"internal/bootstrap/primordials",
Expand Down

0 comments on commit 19bbf7f

Please sign in to comment.