You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debug Adapter should drop references to variables, scopes, stack frames when execution resumes #4420
To simplify the management of object references in debug adapters, their lifetime is limited to the current suspended state. Once execution resumes, object references become invalid and DAP clients must not use them.
...
Please note that other object references like threadId do not have limited lifetime because that would prevent something like the pause request from working in the running state.
We should probably store a flag with StoredData stating whether data can be dropped when resuming.
(We may need to consider when we clear variablesReferences for global evaluations, since those may still be visible in the Debug Console and users might still want to interact with them).
Activity
DanTup commentedon Jun 20, 2023
https://dart-review.googlesource.com/c/sdk/+/310342
[dds/dap] Clear stored thread data on resume
DanTup commentedon Jun 28, 2023
Fixed by dart-lang/sdk@01c02d6, ships in SDKs.