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

IEnumerable Debugger Visualizer not working with X# #1373

Closed
VolkmarR opened this issue Oct 20, 2023 · 2 comments
Closed

IEnumerable Debugger Visualizer not working with X# #1373

VolkmarR opened this issue Oct 20, 2023 · 2 comments
Assignees
Milestone

Comments

@VolkmarR
Copy link
Contributor

Visual Studio 2022 (17.2) supports debug visualizers for IEnumerables and DataTables.

https://devblogs.microsoft.com/visualstudio/view-net-collections-with-the-new-ienumerable-debugger-visualizer/

If i try to use these visualizers in an x# project (2.17.0.3), i'll get the following error: "Could not load this custom viewer."

Here's a example project in c# and x# that shows that problem. When you put a breakpoint on the dt.Rows.Clear line and try to use the debug viewer on arr or dt.

image
image

X# Example: XSharpTestsDataTableViewer.zip
C# Example: Visualizer.zip

@RobertvanderHulst
Copy link
Member

Volkmar,
Thanks for the report and the examples. I will look into this.

@RobertvanderHulst
Copy link
Member

It's working now, but the visualizer is not very smart. It also includes fields and properties that are marked with an attribute to be hidden. See microsoft/ConcordExtensibilitySamples#108
Therefore, the visualizer output for arrays is Terrible because it shows all the hidden properties of the Usual values in the array elements.....

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

No branches or pull requests

2 participants