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

Unified Diff: editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/breakpoints/DartBreakpoint.java

Issue 605833002: Show errors reported for invalid setBreakpoint calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Try both URLs. Write errors to the console. Created 6 years, 3 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/breakpoints/DartBreakpoint.java
diff --git a/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/breakpoints/DartBreakpoint.java b/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/breakpoints/DartBreakpoint.java
index f25121a8a8eadf6e013603649f5154a5c12ceaee..f508e666d618846de11ea6542e54c03d860c8753 100644
--- a/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/breakpoints/DartBreakpoint.java
+++ b/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/breakpoints/DartBreakpoint.java
@@ -144,6 +144,14 @@ public class DartBreakpoint extends LineBreakpoint {
}
}
+ public String getActualFilePath() {
+ IFile file = getFile();
+ if (file != null) {
+ return file.getLocation().toOSString();
+ }
+ return getFilePath();
+ }
+
public int getLine() {
IMarker marker = getMarker();
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/server/ServerBreakpointManager.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698