Enumerable Debugger Visualizer
Download AW.EnumerableVisualizer.dll(VS2008) or
AW.EnumerableVisualizer.dll(VS2010) then copy it to either of the debugger visualizers directories:
How to: Install a Visualizer
Note, the binary is an ilmerge of the AW.DebugVisualizers.dll and its support assemblies.
- Repository code is downloadable from the source code tab, though I recommend using TortoiseSVN for the getting the source from the repository.
- Build the solution AW.DebugVisualizers.sln
- Run DebugDeploy.bat which copies AW.DebugVisualizers.dll and its support assemblies to %userprofile%\My Documents\Visual Studio 20XX\Visualizers.
ILMerge-GUI to build a single executable from AW.DebugVisualizers.ilproj
Unfortunately you can't register a debugger visualizer for interfaces so every IEnumerable class must registered individually. The, over 500, mainly BCL, classes that are registered can be seen in the file
VisualizerRegistrations.cs, you can easily add more to the source code.
If you wish to visualize a non-registered variable you can wrap the variable you want to inspect like this:
new System.WeakReference(variable_to_inspect) in the same way that
How it works
Uses the BinaryFormatter serializer.
if the items are serializable
if the enumerable is also serializable
serialize the enumerable
create an ObjectListView to contain the items and serialize that.
Full back is to:
Copy the enumerable to a DataTable and serialize that.
Other debugger visualizers Links
Other debugging Links
Collection Debugger Visualizer, List Debugger Visualizer