Change the way the Visual Studio debugger displays char variables

I have a program in which I'm using the unsigned char type to represent integers, but when inspecting the variables in the debugger with Visual Studio 2005, it's showing me the ASCII character representations, whereas I would like to see the decimal representation. Does anyone know of a way to change the way it displays the data?


Suppose you have a variable foo declared as uint32_t , and you want to display foo as if it were actually a float . In the watch window, you can enter the expression:

*(float*)&foo

...and it will display foo cast as a float .

链接地址: http://www.djcxy.com/p/95362.html

上一篇: Visual Studio调试Memory1窗口十六进制为降低鼠标悬停不起作用

下一篇: 更改Visual Studio调试器显示char变量的方式