microsoft / microsoft/vscode-js-debug
RFC: Formatting of debug values
@connor4312 is already working on this.
Since Dec 7, 2024.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 373
- Avg merge
- 1d 9m
- Merged PRs (30d)
- 6
Description
Is your feature request related to a problem? Please describe.
#1775 implemented custom descriptions, but the motivating context issues also talk about values, which are missing support.
I'm debugging gleam-lang via javascript. It is a compiled language, and has a thin runtime and data-structure glue layers to make it work great in javascript.
My map looks something like this in the JS debugger:
Dict {
root: {
type: 2,
bitmap: 1,
array: [
{
type: 0,
k: [
0,
0,
],
v: "S",
},
],
},
size: 1,
}
As you can see, not very friendly.
I'd like the following:
Dict {
'[0,0]': "S"
_raw: /* reference to the raw/unformatted data-structure implementation */
}
Describe the feature you'd like
customProperties was marked deprecated in this repo, but it kind of works for my use case. Ideally, something like [Symbol.for('debug.value')] or similar.
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.