Skip to content

[CP] Fixes for web debugging when using the new DAP #54732

Closed
@nshahan

Description

@nshahan

Commit(s) to merge

389d66a, 67e052d

Target

beta

Prepared changelist for beta/stable

https://dart-review.googlesource.com/c/sdk/+/348186, https://dart-review.googlesource.com/c/sdk/+/348205

Issue Description

The new DAP used in communication during web debugging is calling previously unused APIs to show the values of getters in the debugger. This caused expression evaluation errors when trying to show .runtimeType.

What is the fix

Update how runtime type objects are labeled and queried to avoid errors when they are displayed in developer tools.

Why cherry-pick

The dart debugger and vscode were triggering errors for every variable in scope by automatically trying to show the .runtimeType getter. These changes fix those errors.

Risk

low

Issue link(s)

#54694, dart-lang/webdev#2343, dart-lang/webdev#2351

Extra Info

No response

Metadata

Metadata

Labels

area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.cherry-pick-approvedLabel for approved cherrypick requestcherry-pick-reviewIssue that need cherry pick triage to approvemerge-to-beta

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions