Can I control the number of digits displayed in debugger windows for float and double variables?

后端 未结 6 1948
别跟我提以往
别跟我提以往 2021-01-08 00:51

In Visual Studio 2012, I\'m looking for a way to customize the default display of floating point types in the Autos, Locals, and Watch windows. I\'m familiar with the Native

6条回答
  •  粉色の甜心
    2021-01-08 01:39

    The only way to do this that I know of is to write a native visualizer DLL. See this answer to the question "How to write a custom native visualizer DLL for Visual Studio 2012 debugger?".

    I have successfully used that, and the sources linked in that answer, to write custom visualizers that display the floating point members of various types with the precision I want.

提交回复
热议问题