Permalink
Browse files

debugger: possible fix

  • Loading branch information...
1 parent 698e795 commit e93d2c2b2aab2f557b7250b01d1b0ba7df2cac44 @indutny committed Mar 27, 2012
Showing with 3 additions and 9 deletions.
  1. +3 −9 src/node.cc
View
@@ -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);

0 comments on commit e93d2c2

Please sign in to comment.