Skip to content

Enable better default formatters for text types in debug variables #242492

Closed as not planned
@timheuer

Description

@timheuer

VS Code debugger experience lacks a common tooling experience in visualizing language-agnostic and common formats when debugging and providing a delightful experience for strings.

Take into account a string variable that is JSON (serialized to string), the default experience in VSCode is a blob of string text or default "view as HEX" both of which are not as helpful.

Considering Visual Studio's text implementation (for all languages, default in the shell), it enables visualization of very common formats of JSON, XML, JWT tokens, etc.:

https://learn.microsoft.com/en-us/visualstudio/debugger/string-visualizer-dialog-box?view=vs-2022#text-string-data

Image

Adding string to JSON/XML/JWT would be a value-add for the default debugger experience in variables, while still delegating custom language-specific visualizers to the languages themselves (e.g., IEnumerable for C#, etc.)

Metadata

Metadata

Labels

*duplicateIssue identified as a duplicate of another issue(s)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions