Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

late fields are obfuscated in the debugger #2440

Closed
elliette opened this issue May 28, 2024 · 1 comment
Closed

late fields are obfuscated in the debugger #2440

elliette opened this issue May 28, 2024 · 1 comment

Comments

@elliette
Copy link
Contributor

Example:

Screenshot 2024-05-28 at 3 06 50 PM

See cl/637897346 for context.

Some notes:

late fields used to be de-obfuscated by DWDS: #1355

This was removed in #2159 and replaced with the DDC runtime debugger API's getObjectFieldNames method.

I see that the DDC runtime API does try to handle late fields: https://github.com/dart-lang/sdk/blob/1a9acb9171a4a6b69d5e537438d3191ff59cd6da/sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/debugger.dart#L546-L549

FYI @nshahan @Markzipan

@nshahan
Copy link
Contributor

nshahan commented Jun 5, 2024

I've landed fixes for late local variables with these two changes (I think that is what we were discussing with this issue).

There is technically DDC uses a different representation for class fields, and library level fields so those should be considered independently from each other and from the local variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants