Set _debugWaitConnect on --inspect-brk

This commit is contained in:
Kevin Sawicki 2017-05-16 14:50:49 -07:00
parent c419ebdd6d
commit d8aca08da7
2 changed files with 8 additions and 6 deletions

View file

@ -198,12 +198,6 @@ node::Environment* NodeBindings::CreateEnvironment(
PathService::Get(content::CHILD_PROCESS_EXE, &helper_exec_path);
process.Set("helperExecPath", helper_exec_path);
// Set process._debugWaitConnect if --debug-brk was specified to stop
// the debugger on the first line
if (browser_env_ == BROWSER &&
base::CommandLine::ForCurrentProcess()->HasSwitch("debug-brk"))
process.Set("_debugWaitConnect", true);
return env;
}