Make --debug-brk work.

This commit is contained in:
Cheng Zhao 2014-09-05 10:59:29 +08:00
parent e3b6ea62d6
commit 222f8e1028

View 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;