microsoft / ConcordExtensibilitySamples

Visual Studio Debug Engine Extensibility Samples
Other
122 stars 50 forks source link

How to filter for my custom project? #60

Open igadmg opened 4 years ago

igadmg commented 4 years ago

I am developing extension for a C++ Native project, but my extensions are only useful if user is debugging my special framework. Is it possible to use vsdconfigxml Filters somehow to filter out non my special framework projects? For example I can set up some variables in my special VSIX or Solution variable?

Leto58 commented 3 years ago

Hi, I agree, before it was easy to have custom visualizers bound to one solution: you just needed to put your .natvis in one of your project, along with the .dll, whose path could be given in <DisplayString LegacyAddin=...>. This way, every developer that downloaded your project could benefit from the visualizer without even knowing he was using a custom visualizer.

Now, with extensions, you must explain them why what they you use to see in debug does not work anymore, and that they must install an extension to have it back. Back to the same pain as when natvis files had to be installed in main %VSINSTALLDIR%\Common7\Packages\Debugger\Visualizers.

Turning custom visualizers into extensions is very neat and consistent, but it would be just perfect to be able to supply them along with projects or solution too, for example by copying the .vsdconfig and the .dll in the same directory as the .natvis (since no path can be given anymore, now that LegacyAddin disappeared)