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

Separate debugger visualizer tool window for different variables of the same type #446

Open
Aleksey1555 opened this issue Dec 11, 2024 · 0 comments

Comments

@Aleksey1555
Copy link

Aleksey1555 commented Dec 11, 2024

Hello.
How to create separate Debugger Visualizer window for different variables of the same type?
I create VisualStudio.Extensibiliy Extension with VSSDK Compatibility project.
I create class which inherits from DebuggerVisualizerProvider.
In method CreateVisualizerAsync i receive data and write this code:

await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
var muc = new MainUserControl(); // My UserControl
var wrap = new WpfControlWrapper(muc);
return await Task.FromResult<IRemoteUserControl>(wrap);

And everything fine, but when i make debug of my program and click 'View' i get same tool window for different variables of same type.
How to make many tool windows for each variable?

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

1 participant