node: start debugger for node run during a forked process
This commit is contained in:
parent
9cf4156928
commit
ee08d98d2e
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue