In Visual Studio 2012, I’m looking for a way to configure the default display of floating point types in the Autos, Locals, and Watch windows. I am familiar with the Native Visualizer (Natvis) utility, but I don’t see any debugger formatting tools for this. Likewise, I do not know of any means to override the default display of any primitive types (except for hex resolution).
The goal will be to create display strings with fewer digits, extended for types corresponding to points, geometric vectors, etc., but at the same time they will all be displayed during type expansion. For example, I might have a dot type mapping variable like (0.000, 1.234, 2.429) instead of m_x = 0.00000000, m_y = 1.234245213... in the middle column of the Autos window.
I looked at format specifiers on this page , but I see no way to control floating point precision.
c ++ debugging visual-studio-2012 natvis
Jay Carlton
source share