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

Unified Diff: runtime/observatory/lib/src/debugger/source_location.dart

Issue 993613002: Implement 'print', 'up', 'down', and 'frame' commands in the Observatory debugger. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 5 years, 9 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: runtime/observatory/lib/src/debugger/source_location.dart
diff --git a/runtime/observatory/lib/src/debugger/source_location.dart b/runtime/observatory/lib/src/debugger/source_location.dart
index 07ab3f6c00e3903c730a46e2351028b065138cf7..f14d87b14b22c7bb1e2cf4691b7937a558bf4234 100644
--- a/runtime/observatory/lib/src/debugger/source_location.dart
+++ b/runtime/observatory/lib/src/debugger/source_location.dart
@@ -48,7 +48,7 @@ class SourceLocation {
return new Future.value(new SourceLocation.error(
'A script must be provided when the stack is empty'));
}
- var frame = stack['frames'][0];
+ var frame = stack['frames'][debugger.currentFrame];
Script script = frame['script'];
return script.load().then((_) {
var line = script.tokenToLine(frame['tokenPos']);
« no previous file with comments | « runtime/observatory/lib/src/debugger/debugger.dart ('k') | runtime/observatory/lib/src/elements/debugger.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698