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

Lacking VSCode natvis constructs #1368

Open
OfekShilon opened this issue Nov 5, 2022 · 8 comments
Open

Lacking VSCode natvis constructs #1368

OfekShilon opened this issue Nov 5, 2022 · 8 comments

Comments

@OfekShilon
Copy link

OfekShilon commented Nov 5, 2022

I'm going by the docs, submitting an issue where VSCode functionality is missing.
We (and probably many, many others) wish to use visualizers to debug hash maps and other standard data structures. Following the documented example, a few natvis constructs are needed for this:

  1. CustomListItems,
  2. Variable,
  3. Exec,
  4. Loop,
  5. If

It seems at least the first item isn't implemented, I suspect the rest too. It would be very valuable to be able to watch various hash maps, sets and dictionaries.

@OfekShilon OfekShilon changed the title Lacking VSCode functionality Lacking VSCode natvis constructs Nov 5, 2022
@OfekShilon
Copy link
Author

Looking at ExpandVisualzied I see it doesn't implement CustomListItemsType

@jkriegshauser
Copy link

I don't see any way to upvote on Github, but this is highly desirable. Also, the <Intrinsic> type as well.

@OfekShilon
Copy link
Author

Ping. Any chance of doing something with this?

@OfekShilon
Copy link
Author

@gregg-miskelly Perhaps you can help prioritize this? This would make a world of difference in native debugging on VSCode.

@gregg-miskelly
Copy link
Member

@OfekShilon I can't promise when we will be able to close more natvis gaps -- supporting natvis is difficult in MIEngine, as we need to do it on top of GDB commands instead of something built into the expression evaluator. But it would be useful if you could give us a prioritized list of the gaps (maybe the list at the top of this is already in your priority order)?

@OfekShilon
Copy link
Author

@gregg-miskelly I'd say:

  1. Loop,
  2. CustomListItems,
  3. Exec,
  4. Variable,
  5. If

@OfekShilon
Copy link
Author

Is there any alternative? Can gdb pretty-printers be used to populate variable watch?

@gregg-miskelly
Copy link
Member

Yes, if your launch options are configured to use pretty printing, then pretty printers can change the values seen in the variables window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants