Visual Studio's C++ debugger has some undocumented yet powerful features ! Here is how to view an integer data type with its data in various ways. Suppose you break at the below statement in program,
int nVal = 0x12345678;
Use operators before variable name in watch window...
by To view contents of a variable as an unsigned byte
wo To view contents of a variable as an unsigned word
dw To view contents of a variable as a dword
Use format specifiers after variable name in watch window...
,o To view the conten in octal
,d To view the conten in decimal
,x To view the conten in hex
See the below debugging snapshot to visualize how to use the above said,
No comments:
Post a Comment