diff --git a/src/node.cc b/src/node.cc index 08862d47fe..907bd415f6 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2390,15 +2390,9 @@ static void EnableDebug(bool wait_connect) { node_isolate->Enter(); // Start the debug thread and it's associated TCP server on port 5858. - bool r = v8::Debug::EnableAgent("node " NODE_VERSION, debug_port); - - if (wait_connect) { - // Set up an empty handler so v8 will not continue until a debugger - // attaches. This is the same behavior as Debug::EnableAgent(_,_,true) - // except we don't break at the beginning of the script. - // see Debugger::StartAgent in debug.cc of v8/src - v8::Debug::SetMessageHandler2(node::DebugBreakMessageHandler); - } + bool r = v8::Debug::EnableAgent("node " NODE_VERSION, + debug_port, + wait_connect); // Crappy check that everything went well. FIXME assert(r);