Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/webkit/WebkitDebugger.java

Issue 10690002: Fix some issues when debugging against package: libraries (Dartium and command-line). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/webkit/WebkitDebugger.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/webkit/WebkitDebugger.java (revision 9145)
+++ editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/webkit/WebkitDebugger.java (working copy)
@@ -547,10 +547,14 @@
} else if (method.equals(DEBUGGER_SCRIPT_PARSED)) {
WebkitScript script = WebkitScript.createFrom(params);
- scriptMap.put(script.getScriptId(), script);
+ // We get a blizzard of empty script parsed events from Dartium due to the way they integrated
+ // the Dart VM into the Webkit debugger.
+ if (script.getUrl().length() > 0) {
+ scriptMap.put(script.getScriptId(), script);
- for (DebuggerListener listener : listeners) {
- listener.debuggerScriptParsed(script);
+ for (DebuggerListener listener : listeners) {
+ listener.debuggerScriptParsed(script);
+ }
}
} else if (method.equals(DEBUGGER_BREAKPOINT_RESOLVED)) {
WebkitBreakpoint breakpoint = WebkitBreakpoint.createFrom(params);

Powered by Google App Engine
This is Rietveld 408576698