Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

DebugOptions.ParseOption() needs argv[0] as first parameter

  • Loading branch information...
hferreiro committed Sep 8, 2017
1 parent f80a984 commit b9965d1eeedfe119752559bc512374dbc1049d91
Showing with 2 additions and 2 deletions.
  1. +2 −2 atom/common/node_bindings.cc
@@ -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);
}

0 comments on commit b9965d1

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