Skip to content

DWDS should include static members in class information  #1430

Closed
@elliette

Description

@elliette

In the Dart DevTools debugger, we don’t show static fields in the expression evaluation autocomplete when connected to a web app. This is because DWDS only populates the class information with instance fields, not static fields: dwds/lib/src/debugging/classes.dart.

The sdkUtils that DWDS uses to fetch the instance fields is an alias DDC’s own internal runtime library. There are also methods for getting various static members ( ddc_runtime/classes.dart ), but their implementation was removed because they weren’t being used within DDC.

@nshahan is working on adding the DDC implementations back, but only including the static members’ names so as not to add too much internal bloat. Once DDC returns the names, DWDS can begin calling the sdkUtils methods for getting static members.

Related bugs:

FYI @annagrin as well.

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onpackage:dwdstriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions