[CP] Fixes for web debugging when using the new DAP #54732
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
merge-to-beta
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
The text was updated successfully, but these errors were encountered: