I'm wondering whether there is any method to show vector/matrix entries values in the debugging section on Visual Studio (in particular VS2012).
This question is very similar to the one posted in:
Is there a way to print an Armadillo matrix in gdb?
however I did not manage to figure out whether this approach also applies to VS.
Thanks.
You may use visualizers in Visual Studio, don´t know from which version but in Visual Studio 2015 you may add a
.natvis
file to the project.arma.natvis:
This will show you readable data for the basic
ARMADILLO
types.An example of how some types are showed:
This
.natvis
XML code works fine in visual studio 2013. I added @Claes Rolen XML in visual studio 2013 and that dose not work fine for me.The trick is to use
<IndexListItems>
to visualize armadillo matrixdeclare and initialize code
.Natvis File
And Result image in debugger: