Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

RFC: Formatting of debug values #2140

Open
cdaringe opened this issue Dec 7, 2024 · 0 comments
Open

RFC: Formatting of debug values #2140

cdaringe opened this issue Dec 7, 2024 · 0 comments
Assignees
Labels
feature-request Request for new features or functionality

Comments

@cdaringe
Copy link

cdaringe commented Dec 7, 2024

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.

@cdaringe cdaringe added the feature-request Request for new features or functionality label Dec 7, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants