-
Notifications
You must be signed in to change notification settings - Fork 340
Description
https://microsoft.github.io/debug-adapter-protocol/overview#lifetime-of-objects-references
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 likethreadIddo not have limited lifetime because that would prevent something like thepauserequest 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).