I am developing XNA stuff and using their Matrix structure. When debugging, the value shown for a Matrix is something like:
which is not super convenient to read. I would like to have something like:
{ R:{ 0; 0; 0 } S:{ 1; 1; 1 } T:{ 0; 0; 0 } }
Since this structure is not mine I can not override the ToString
method, nor the DebuggerDisplay
attribute.
Is there a simple technic for this kind of feature? I imagine it as a common requirement. Maybe something to do with VisualStudio itself as a last resort?
Precision: I am not looking for the operation (Matrix.Decompose() for the curious), just the "rendering" of variables of this type in Visual Studio (or others after all) in debug mode.