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
.