Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
DebugOptions.ParseOption() needs argv[0] as first parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hferreiro committed Sep 20, 2017
1 parent f80a984 commit b9965d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atom/common/node_bindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ node::Environment* NodeBindings::CreateEnvironment(

node::DebugOptions debug_options;
for (size_t i = 0; i < args.size(); ++i) {
debug_options.ParseOption(args[i]);
debug_options.ParseOption(c_argv[0], args[i]);
}
if (debug_options.inspector_enabled()) {
// always enable the inspector
debug_options.ParseOption("--inspect");
debug_options.ParseOption(c_argv[0], "--inspect");
env->inspector_agent()->Start(
gin::V8Platform::Get(), nullptr, debug_options);
}
Expand Down

0 comments on commit b9965d1

Please sign in to comment.