Author: [email protected]
Date: Wed May 27 13:57:01 2009
New Revision: 2066
Modified:
branches/bleeding_edge/src/debug.cc
Log:
Don't process debug requests if the debug event is script collected.
Review URL: http://codereview.chromium.org/113900
Modified: branches/bleeding_edge/src/debug.cc
==============================================================================
--- branches/bleeding_edge/src/debug.cc (original)
+++ branches/bleeding_edge/src/debug.cc Wed May 27 13:57:01 2009
@@ -2034,7 +2034,12 @@
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;
}
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---