[dev_compiler] Support showing inherited fields in the debugger #45387
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
dev-compiler-eval
web-eval
evaluation support on the web
Issue
Superclass fields do not show in
Local variables
window in the debugger.Evaluation works fine, but local variables returned from dwds do not contain inherited fields - note that watch window and expression evaluation box evaluate
b.t
but it does not appear in local variables view.We currently use ddc runtime function
sdk_utils.getFields
to get the fields of the object (this
in code below), and it does not seem to list all the inherited properties. Note the comment:// TODO(alanknight): Handle superclass fields.
:https://github.com/dart-lang/webdev/blob/51ad9e76a8283499059a7357f7ada8a48aacd87d/dwds/lib/src/debugging/instance.dart#L276
Suggestion
Related
dart-lang/webdev#1263
Repro
The text was updated successfully, but these errors were encountered: