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

Unified Diff: pkg/dartino_compiler/lib/debug_state.dart

Issue 1987673002: Initial Implementation of the vm-service protocol (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Keep track of terminated state Created 4 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: pkg/dartino_compiler/lib/debug_state.dart
diff --git a/pkg/dartino_compiler/lib/debug_state.dart b/pkg/dartino_compiler/lib/debug_state.dart
index e0f4a660e51f609c4ff725ee67a979155067458e..7ddb2e877994c4cfce76118db95e2057b75e6ac7 100644
--- a/pkg/dartino_compiler/lib/debug_state.dart
+++ b/pkg/dartino_compiler/lib/debug_state.dart
@@ -60,10 +60,14 @@ class Breakpoint {
Breakpoint(this.function, this.bytecodeIndex, this.id);
- String location(DebugState state) {
+ String locationString(DebugState state) {
return state.getDebugInfo(function).fileAndLineStringFor(bytecodeIndex);
}
+ SourceLocation location(DebugState state) {
+ return state.getDebugInfo(function).locationFor(bytecodeIndex);
+ }
+
String toString() => "id: '$id' method: '$methodName' "
"bytecode index: '$bytecodeIndex'";
}
« no previous file with comments | « pkg/dartino_compiler/lib/cli_debugger.dart ('k') | pkg/dartino_compiler/lib/src/debug_service_protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698