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

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

Issue 2122743004: Use the actual frame for printing single values from the cli debugger. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | tests/debugger/internal_scope_expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartino_compiler/lib/cli_debugger.dart
diff --git a/pkg/dartino_compiler/lib/cli_debugger.dart b/pkg/dartino_compiler/lib/cli_debugger.dart
index d469cb8a35b5e5b9a203a38627c8b2825ef8635a..795a0c3d0b31dca617795d279e047988543dc835 100644
--- a/pkg/dartino_compiler/lib/cli_debugger.dart
+++ b/pkg/dartino_compiler/lib/cli_debugger.dart
@@ -722,7 +722,7 @@ Future<RemoteObject> _processVariable(
assert(vmContext.isSpawned);
assert(accesses.isNotEmpty);
LocalAccess localAccess = accesses.first;
- int frame = vmContext.debugState.currentFrame;
+ int frame = vmContext.debugState.actualCurrentFrameNumber;
LocalValue local = await lookupValue(localAccess.localName, vmContext);
if (local == null) {
return new RemoteErrorObject(
« no previous file with comments | « no previous file | tests/debugger/internal_scope_expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698