From ee08d98d2e8cfc932a6e11babbe23c81e94c8a6b Mon Sep 17 00:00:00 2001 From: Robo Date: Tue, 14 Apr 2015 07:45:34 +0530 Subject: [PATCH] node: start debugger for node run during a forked process --- atom/app/node_main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atom/app/node_main.cc b/atom/app/node_main.cc index 66cf9dcf12e..dec2443525a 100644 --- a/atom/app/node_main.cc +++ b/atom/app/node_main.cc @@ -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);