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 Dec 26, 2017
1 parent c023399 commit 6c104d3
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 @@ -203,11 +203,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 6c104d3

Please sign in to comment.