microsoft / microsoft/vscode-js-debug

RFC: Formatting of debug values

Open
#2,140 0 comments 0 reactions 1 assignee View on GitHub

@connor4312 is already working on this.

Since Dec 7, 2024.

feature-request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.