|
@@ -185,6 +185,13 @@ node::Environment* NodeBindings::CreateEnvironment(
|
|
|
base::FilePath helper_exec_path;
|
|
|
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 (is_browser_ &&
|
|
|
+ base::CommandLine::ForCurrentProcess()->HasSwitch("debug-brk"))
|
|
|
+ process.Set("_debugWaitConnect", true);
|
|
|
+
|
|
|
return env;
|
|
|
}
|
|
|
|