Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Visual Studio-like custom data visualizers #111105

Closed
chopeen opened this issue Nov 21, 2020 · 7 comments
Closed

Visual Studio-like custom data visualizers #111105

chopeen opened this issue Nov 21, 2020 · 7 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Milestone

Comments

@chopeen
Copy link

chopeen commented Nov 21, 2020

Visual Studio allows to extend the debugger with custom data visualizers and developing them is trivial. They can display a variable in a manner appropriate to its data type, e.g. picture for a bitmap type, rendered content for a markup language or tree view for a hierarchical data structure.

A similar feature in VS Code would allow - for example - to create a much-requsted visualizer for pandas DataFrame objects (PyCharm offers such feature).

Is the ability to add custom data visualizers on the roadmap?

@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality labels Nov 22, 2020
@weinand
Copy link
Contributor

weinand commented Nov 24, 2020

We did already an investigation of this feature and came to this conclusion:
#26234 (comment)

Summary:

  • custom object formatters are runtime/debugger specific,
  • concrete formatters cannot be shared across languages because they depend on access to the underlying object representation (which is debugger/runtime specific),
  • formatters need to be "close" to the debugger/runtime so that they can determine the low-level type of objects.

I suggest to file feature requests against the debug extensions you are interested in.

As an example here is the feature request for JS/TS: #102181

@weinand
Copy link
Contributor

weinand commented Nov 24, 2020

/duplicate #26234

@chopeen
Copy link
Author

chopeen commented Nov 24, 2020

Thank you @weinand for a detailed explanation! I will analyze the topic deeper over the weekend and post here again if I have further questions.

@chopeen
Copy link
Author

chopeen commented Dec 6, 2020

Thank you for the links! I will read about Debug Adapter Protocol.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants
@chopeen @weinand and others