Array Visualizer is a free, open source extension for visual studio. It is designed to display arrays (Jagged and up to 4D) while debugging an application.
It's easy to do a quick check on arrays, also its very pretty visual tool. I am taking my kids through learning programming, and this couldn't be cooler as I am explaining arrays.
Doesn't function with my german version of Visual Studio 2010 Ultimate. Have the arrays to be named with "array" to be found? Have the arrays to be integer arrays to be found? I didn't find a documentation so my questions are not answered.
1) No, arrays can be called anything not just array to be “found” 2) Yes it does support non integer arrays. Did you look at the last sample? 3) I did not test it on each and every environment/language combination known to mankind, I did provide the source code so feel free to look at it and help making it a better free add-on. 4) While I understand your disappointment/frustration, Q/A is the appropriate place for questions…
Is it possible to add graphic visualization?
At least for 1D or 2D matrixes.
I mean, it would be pleasant to have plot with X-Y data taken from the given array.
Vlad, I looked into implementing a graph for array data. The add-on forms are WPF forms and unfortunately WPF does not ship with a chart control. I looked for a good free control and could not find anything too reliable. There are a lot of good commercial controls that are rather pricy and because this is a free contribution, I don’t want to pay for a license. If you know of a free good chart control or a way to get a license from a commercial provider I would be happy to add the feature.
Amir, I've got your point.
Unfortunately for now I don't know much - I've just switched from Eclipse to VS :)
If I find anything useful/stable/free, I'll let you know.
Thanks for response!
Vlad,
I recently found a wonderful chart control from SyncFusion and they have a special open source license! I added it to the extension and it is available for download. Please let me know what are your thoughts.
Amir
Although this visualizer works for integer values, it has a lot of problems displaying floating point values. It looks like it just handles the data as integers. Is there any special format to be selected?
You can modify how numbers are formatted from the Visualizer window, just change the default 0.## to the precision you need and make the cell wider to allow all the digits to display.
The default width of a cell is 60 (pixels), try 90 or 120 and see if it helps. Also, look at http://arrayvisualizer.codeplex.com/wikipage?title=Visualizer%20Addon%20Help for details.
Would it be possible to view one-dimensional arrays (with the proper dimensions) as 2D, 3D or 4D arrays?
Example: With that feature, you could view a int[9] (or much larger) array as a 3x3 matrix if you can't use int[3,3] instead.
What do you think?
Mario, the reason I did not include a one dimension viewer is that VS does a good job showing lists and single dimension arrays out of the box. Showing a single dimension array as multi-diminution array is an interesting idea. In the meantime you can use the LinqLib library to transform your array to a multi dimension array using the ToArray(X, Y) extension.
In the immediate window type:
var temp = MyArray.ToArray(3, 3);
MyArray can be a single dimension array, multi-dimension array, or any type that implements IEnumerable.
switch over to the visualizer window and you will see it (prefixed with a $ sign)…
The LinqLib library is an open source project and you can find it at: http://linqlib.codeplex.com/
HTH,
Amir
Only C# is supported (i tried VB.NET and C++ and it didn't find array variables)?
What array types are supported?
Example(VB):
Dim a As Integer(,)
ReDim a(10, 10)
For i = 1 To 10
For j = 1 To 10
a(i, j) = 1
Next
Next
Currently Only C# is supported. I am working on support for VB version. I mentioned it at the bottom of the description section; I'll move that disclaimer to the top.
It is very strange; I get three 4D images and one 2D image on my phone and the proper display (one of each) on my desktop browser.
Thank you for pointing this out, I'll look into it.