Only set _debugWaitConnect in main process
This commit is contained in:
parent
a2f0111205
commit
7dd1a7e6f4
1 changed files with 4 additions and 1 deletions
|
@ -186,7 +186,10 @@ node::Environment* NodeBindings::CreateEnvironment(
|
|||
PathService::Get(content::CHILD_PROCESS_EXE, &helper_exec_path);
|
||||
process.Set("helperExecPath", helper_exec_path);
|
||||
|
||||
if (base::CommandLine::ForCurrentProcess()->HasSwitch("debug-brk"))
|
||||
// Set process._debugWaitConnect if --debug-brk was specified to stop
|
||||
// the debugger on the first line
|
||||
if (is_browser_ &&
|
||||
base::CommandLine::ForCurrentProcess()->HasSwitch("debug-brk"))
|
||||
process.Set("_debugWaitConnect", true);
|
||||
|
||||
return env;
|
||||
|
|
Loading…
Reference in a new issue