Commit 4014f642 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Don't process debug requests if the debug event is script collected.

Review URL: http://codereview.chromium.org/113900

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2066 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 3d154154
......@@ -2034,7 +2034,12 @@ void Debugger::NotifyMessageHandler(v8::DebugEvent event,
Handle<JSObject>::cast(event_data));
InvokeMessageHandler(message);
}
if (auto_continue && !HasCommands()) {
// If auto continue don't make the event cause a break, but process messages
// in the queue if any. For script collected events don't even process
// messages in the queue as the execution state might not be what is expected
// by the client.
if (auto_continue && !HasCommands() || event == v8::ScriptCollected) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment