Index: src/debug.cc |
=================================================================== |
--- src/debug.cc (revision 2050) |
+++ src/debug.cc (working copy) |
@@ -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; |
} |