debuggervisualizer

How to create a Visual-Studio string visualizer?

谁都会走 提交于 2019-12-11 12:31:51
问题 I was trying to create a visualizer for IDictionary or ICollection Then like the simple visualizer (without dialog; I mean the ususal string visualizer that appears when hovering the variable, see image below), I want to make my custom text, I want to cast the collection to its type's list (I.E. StringCollection to List(Of String) or List) and then I will be able to see it in the visualizer. Or for Dictionaries show to lists visualizers for keys and for values. Any ideas how to implement or

How to augment the Visual Studio C# editor with non-textual information?

◇◆丶佛笑我妖孽 提交于 2019-12-07 19:51:15
问题 I've come across cases where the Visual Studio C# editor displays extra UI and/or data: The debugger breakpoints configuration introduced in VS 2015 - see here. Ozcode, which augments the editor with debug-time values. I'd like to do something similar, but don't know which Visual Studio APIs to use. I've come across these Visual Studio extensibility technologies: Debugger Visualizers: allows a custom visualizer to be written in C#, but seems to require the output to be in a modal pop-up

User defined natvis files in Visual Studio 2012

↘锁芯ラ 提交于 2019-12-06 23:35:00
问题 I'm trying to use new debug visualizers in my project, but something happened to Visual Studio and it does not pick up my natvis files anymore. I tried copying them to %USERPROFILE%\My Documents\Visual Studio 2012\Visualizers as well as to \Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Packages\Debugger\Visualizers but it still fails. It did work a week ago, but something has broken since then. I tried repairing Visual Studio but it didn't help. I tried enabling

How to augment the Visual Studio C# editor with non-textual information?

佐手、 提交于 2019-12-06 08:13:08
I've come across cases where the Visual Studio C# editor displays extra UI and/or data: The debugger breakpoints configuration introduced in VS 2015 - see here . Ozcode , which augments the editor with debug-time values. I'd like to do something similar, but don't know which Visual Studio APIs to use. I've come across these Visual Studio extensibility technologies: Debugger Visualizers : allows a custom visualizer to be written in C#, but seems to require the output to be in a modal pop-up dialog. Therefore this does not seem to be the right framework. Projection Buffers : Seems promising but

Why Doesn't the Visual Studio 2010 Debugger See static const Class Members?

假如想象 提交于 2019-12-05 03:21:28
This question is closely related to a subsequently asked question here. The method of defining in-class constants is described here by Stroustrup. When I follow Stroustrup's method I see the expected results. However, in Visual Studio 2010, the debugger cannot resolve a static const class member within that class's scope. Here is what I mean: #include <iostream> class Foo { public: static const int A = 50; char arr[A]; void showA(); }; void Foo::showA() { std::cout << "showA = " << A << "\n"; } int main() { Foo f; f.showA(); } When the debugger is in showA() the "watch" window reports: Error:

Debugger visualizer for any ICollection and ICollection<T> types

拥有回忆 提交于 2019-12-05 00:53:11
问题 I created form with grid to visualize any collection ( ICollection , ICollection<T> ) object. After that I created debugger visualizer class (inherits from Microsoft.VisualStudio.DebuggerVisualizers.DialogDebuggerVisualizer ). The visualizer is installed propertly (I tried it on System.Collections.ArrayList class). But I have problem with generalize the visualizer to any ICollection / ICollection<T> type. I specified attribute: [assembly: DebuggerVisualizer( typeof( DebugerSide ), typeof(

Which (third-party) debug visualizers for Visual Studio 2005/2008 do you use?

元气小坏坏 提交于 2019-12-04 05:50:57
I guess this topic is often overseen, but is rather useful when debugging your code. Just today I have stumbled across this simple yet effective visualizer that visualizes images (it's on a german blog, but I guess the code content is self-explanatory): link text I would like to know which debug visualizers you use in your daily work with VS2005/2008. I use Mole . Mole was designed to not only allow the developer to view objects or data, but to also allow the developer to drill into properties of those objects and then edit them. Mole allows unlimited drilling into objects and sub-objects.

How to use Visual Studio Text Visualizer for custom types?

懵懂的女人 提交于 2019-12-04 04:50:25
In Visual Studio 2015 (and in some older versions) when debugging C# code it's possible to display the values of the string variables in various visualizers (Text, XML, HTML, JSON) via a drop-down list with a magnifying glass icon. This also works for some non-string types, for example, System.Xml.Linq.XElement . Is it possible to use these build-in visualizers to display the value of a variable of my own custom type? Context: I need to be able to quickly check the state of a complicated custom type that can be acceptably visualized only in a multi-line text environment. If I understand your

Which class is used for “Text Visualizer”?

霸气de小男生 提交于 2019-12-04 04:39:13
When I use DebuggerVisualizer attribute as follows c# [assembly: DebuggerVisualizer(typeof(DataSetVisualizer), typeof(DataSetVisualizerSource), Target = typeof(DataTable), Description = "My DataTable Visualizer")] vb.net <Assembly: DebuggerVisualizer(GetType(DataSetVisualizer), GetType(DataSetVisualizerSource), Target := GetType(DataTable), Description := "My DataTable Visualizer")> I can reuse Dataset Visualiser in my visualisers dll. This allows to have built in VS visualizer as first (default) even when a custom DataTable visualizer is defined( How to specify order of debugger visualizers

Debugger visualizer for any ICollection and ICollection<T> types

十年热恋 提交于 2019-12-03 15:45:57
I created form with grid to visualize any collection ( ICollection , ICollection<T> ) object. After that I created debugger visualizer class (inherits from Microsoft.VisualStudio.DebuggerVisualizers.DialogDebuggerVisualizer ). The visualizer is installed propertly (I tried it on System.Collections.ArrayList class). But I have problem with generalize the visualizer to any ICollection / ICollection<T> type. I specified attribute: [assembly: DebuggerVisualizer( typeof( DebugerSide ), typeof( VisualizerObjectSource ), Target = typeof( System.Collections.Generic.ICollection<> ), Description =