mirror of
https://github.com/electron/electron.git
synced 2026-01-26 07:48:08 -05:00
Set process._debugWaitConnect with --debug-brk is specified
This commit is contained in:
@@ -185,6 +185,10 @@ node::Environment* NodeBindings::CreateEnvironment(
|
||||
base::FilePath helper_exec_path;
|
||||
PathService::Get(content::CHILD_PROCESS_EXE, &helper_exec_path);
|
||||
process.Set("helperExecPath", helper_exec_path);
|
||||
|
||||
if (base::CommandLine::ForCurrentProcess()->HasSwitch("debug-brk"))
|
||||
process.Set("_debugWaitConnect", true);
|
||||
|
||||
return env;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user