mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
node: start debugger for node run during a forked process
This commit is contained in:
@@ -28,6 +28,10 @@ int NodeMain(int argc, char *argv[]) {
|
||||
node::Environment* env = node::CreateEnvironment(
|
||||
gin_env.isolate(), gin_env.context(), argc, argv, exec_argc, exec_argv);
|
||||
|
||||
// Start debugger.
|
||||
if (node::use_debug_agent)
|
||||
node::StartDebug(env, node::debug_wait_connect);
|
||||
|
||||
bool more;
|
||||
do {
|
||||
more = uv_run(env->event_loop(), UV_RUN_ONCE);
|
||||
|
||||
Reference in New Issue
Block a user