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

Unified Diff: editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/ServerDebugStackFrame.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/server/ServerDebugStackFrame.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/ServerDebugStackFrame.java (revision 9145)
+++ editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/ServerDebugStackFrame.java (working copy)
@@ -14,6 +14,9 @@
package com.google.dart.tools.debug.core.server;
+import com.google.dart.compiler.SystemLibraryManager;
+import com.google.dart.tools.core.DartCore;
+import com.google.dart.tools.core.internal.model.SystemLibraryManagerProvider;
import com.google.dart.tools.debug.core.source.ISourceLookup;
import org.eclipse.debug.core.DebugException;
@@ -105,6 +108,12 @@
public String getSourceLocationPath() {
URI uri = URI.create(vmFrame.getLocation().getUrl());
+ // Resolve a package: reference.
+ if (SystemLibraryManager.isPackageUri(uri) && DartCore.getPlugin().getPackageRootPref() != null) {
+ uri = SystemLibraryManagerProvider.getSystemLibraryManager().resolvePackageUri(
+ vmFrame.getLocation().getUrl());
+ }
+
if ("file".equals(uri.getScheme())) {
return uri.getPath();
} else {

Powered by Google App Engine
This is Rietveld 408576698