VS 2010 Debugging - Where's the visualizers
During debugging I was trying to look at a StringBuilder's contents in order to visualize it. I work with a lot of HTML and I would like to be able to view the content in HTML mode like it was possible in VS 2008.
As you can see in the image attached, in 2008 I could very easily get the html mode right in the debugger on the line I wanted. In 2010, I have to call the ToString() method in order to g开发者_运维问答et the same ability.
How can I get the abilities of 2008 back in 2010?
Thank you.
I've updated Seth Richards' VS2010 StringBuilder Visualizer solution so that HTML content that may exist in the StringBuilder object will be rendered. You can download the solution here (rename the .xls extension to .zip)- and/or go here for more information on what changes I made to Seth's solution.
Note: The update I made is not as extensive as the default debugger visualizer either. However it, at least, will render your HTML instead of just showing the raw string.
S H Richards made a custom Visualizer for the StringBuilder type.
I haven't tried it myself, so I cannot vouch for whether or not it works. However, you can download his StringBuilderVisualizer Solution here and test it yourself.
If you try it out, please share your results with us ;)
.NET Visualizer for String
, StringBuilder
and DataTable
objects on sourceforge:
https://sourceforge.net/projects/visualizer/
The visualizer dialogs open non-modally, allowing the code to be edited and recompiled without having to close the windows.
精彩评论