Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Enhance debugging experience with new VSCode Debug Visualizer API #16716

Closed
NickAcPT opened this issue Feb 29, 2024 · 1 comment
Closed

Enhance debugging experience with new VSCode Debug Visualizer API #16716

NickAcPT opened this issue Feb 29, 2024 · 1 comment
Labels
C-feature Category: feature request

Comments

@NickAcPT
Copy link

Hey there,

With the release of VSCode 1.87, a Debug Visualizer API has been proposed.

Per the update log:

We have a new API that enables extensions to contribute visualizers for a variable. These visualizers might be either actions that run a command, such as opening a new editor, or trees embedded inline into the Debug views and that take the place of data's default representation.

Although I'm painfully aware that rust-analyzer "has nothing to do with debugging" (#15407), I firmly believe that we could harness rust-analyzer's knowledge of the codebase (memory layouts; etc) to provide a slightly better debugging experience.

Extra links:

@NickAcPT NickAcPT added the C-feature Category: feature request label Feb 29, 2024
@lnicola
Copy link
Member

lnicola commented Feb 29, 2024

I firmly believe that we could harness rust-analyzer's knowledge of the codebase (memory layouts; etc) to provide a slightly better debugging experience.

Our knowledge of the memory layout is somewhat unreliable and pretty much stops there. Even if it was accurate, it wouldn't apply to optimized binaries. Only the compiler and a debugger have a chance to understand it, and you can count the production-ready debuggers on the fingers on one hand.

Sure, it would be nice to view an image::RgbImage in VS Code, but I don't see that happening.

@rust-lang rust-lang locked and limited conversation to collaborators Feb 29, 2024
@lnicola lnicola converted this issue into discussion #16717 Feb 29, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
C-feature Category: feature request
Projects
None yet
Development

No branches or pull requests

2 participants