microsoft / microsoft/vscode-js-debug
Loosen side effect check in custom strings
@connor4312 is already working on this.
Since Oct 19, 2025.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 373
- Avg merge
- 1d 9m
- Merged PRs (30d)
- 6
Description
In the Variables and Watch panels my variables are often displayed as just a type + fields, e.g.
> x = complex {r: number, i: number}
despite all attempts to request something more helpful.
After looking at the logs it seems to be that under some conditions the request enables throwOnSideEffect and decides even the simplest of toString()s might do something scary.
So my request is for a flag in the launch script that disables enabling throwOnSideEffect in these requests.
Alternatively, could there be some other way of asserting that the call is safe - maybe (yet) another symbol, like "debug.safedescription" - that is a promise that the debugger can safely use it?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.