Yesterday I discovered the MSVC Natvis tool , which allows you to debug a debugger to present your types in an intelligent way. I quickly started overcoming my math library.
This is what my 3 * 3 matrix class (uninitialized data) looks like:

Great, right? My day did not spare.
However, now we turn to a slightly more complicated case:

As you can see, the numbers are not aligned. I realized that way a nasty scream to get negative numbers, to align them with positive numbers, but my method has nothing to do with this (here is my basic plan):
<Type ...> <DisplayString>...</DisplayString> <Expand ...> <Synthetic ...> <DisplayString ...>...</DisplayString> </Synthetic> ... </Expand> </Type>
What happens is that the number of numbers printed varies from number to number.
So my question is: Can I configure Natvis to print a well-defined number of digits for debugging? Alternatively, maybe you have a smart solution?
PS: I will be happy to download a Python script that generates a .natvis file for the y'all game for your own types if I get this working. sub>
source share