]> khamidou — GitHub mirrors - electron.git/commitdiff
Make --debug-brk work.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 5 Sep 2014 02:59:29 +0000 (10:59 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 5 Sep 2014 02:59:29 +0000 (10:59 +0800)
atom/browser/node_debugger.cc

index 55cc3e68f24f9e93e86e1ad53ced9699a5b2d1dc..5d7f1ca1a01a6768321383918053096b712ad52a 100644 (file)
@@ -56,6 +56,9 @@ NodeDebugger::NodeDebugger(v8::Isolate* isolate)
     isolate_->SetData(kIsolateSlot, this);
     v8::Debug::SetMessageHandler(DebugMessageHandler);
 
+    if (wait_for_connection)
+      v8::Debug::DebugBreak(isolate_);
+
     // Start a new IO thread.
     base::Thread::Options options;
     options.message_loop_type = base::MessageLoop::TYPE_IO;