Evaluating variables (and viewing locals) in a frame behind (a few) async points doesn't work #48836
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
vm-debugger
Take this file for instance:
If I run as
dart --enable-vm-service t.dart
and go to observatory (or devtools for that matter) and try to evaluatex
(orp x
, or view the locals) in themain
frame I'm being toldorg-dartlang-debug:synthetic_debug_expression:1:1: Error: Undefined name 'x'.
(observatory),evaluateInFrame: (113) Expression compilation error; org-dartlang-debug:synthetic_debug_expression:1:1: Error: The getter 'x' isn't defined for the class '_FutureListener<S, T>'.;
(DevTools), and presented with an empty list (locals listing).That's not great.
If I go to the allocation profile I can find the
Foo
instance (having a retaining path likeretained by [ 0 ] of Context (1) -> retained by [ 6 ] of Context (9) -> retained by a GC root (stack)
), so it's definitely still there.Why won't the debugger allow me to see it and evaluate it?
/cc @mkustermann
(to be fair this doesn't seem to have ever worked --- but it feels like a thing that should be possible)
The text was updated successfully, but these errors were encountered: