The following tables show the format specifiers recognized by the debugger.
Specifier |
Format |
Expression |
Value displayed |
D, I |
Signed decimal integer |
0xf000f065, d |
-268373915 |
U |
Unsigned decimal integer |
0x0065, u |
101 |
O |
Unsigned octal integer |
0xf065, O |
0170145 |
X, X |
Hexadecimal integer |
61541, X |
0x0000f065 |
L, h |
Long or short prefix for: D, I, U, O, X, X |
00406042, HX |
0x0c22 |
F |
Signed floating point |
(3./2.), F |
1.500000 |
E |
Signed scientific notation |
(3./2.), E |
1.500000e + 000 |
G |
Signed floating point or signed scientific notation, whichever is shorter |
(3./2.), g |
1.5 |
C |
Single Character |
0x0065, c |
101 'E' |
S |
String |
0x0012fde8, S |
"Hello World" |
Su |
Unicode string |
0x0012fde8, Su |
"Hello World" |
S8 |
UTF-8 string |
0x0012fde8, S8 |
"Hello World" |
HR |
Hresult or Win32 error code. (The debugger now decodes hresults automatically, so this specifier is not required in those cases. |
0x00000000l, HR |
S_ OK |
WC |
Window class flag. |
0x00000040, WC |
Wc_defachar char |
Wm |
Windows message numbers |
0x0010, WM |
Wm_close |
! |
Raw format, ignoring any data type views mizmizations |
I! |
4 |
The following table contains formatting symbols used for memory locations. You can use a memory location specifier with any value or expression that evaluates to a location.
Symbol |
Format |
Expression |
Value displayed |
Ma |
64 ASCII characters |
PTR, Ma |
0x0012ffac. 4... 0... ". 0 w &....... 1 W &. 0.: W .. 1 .... ".. 1.jo &. 1. 2 .. ".. 1... 0y .... 1 |
M |
16 bytes in hexadecimal, followed by 16 ASCII characters |
PTR, m |
0x0012ffac B3 34 CB 00 84 30 94 80 ff 22 8A 30 57 26 00 00. 4... 0... ". 0 W &.. |
MB |
16 bytes in hexadecimal, followed by 16 ASCII characters |
PTR, MB |
0x0012ffac B3 34 CB 00 84 30 94 80 ff 22 8A 30 57 26 00 00. 4... 0... ". 0 W &.. |
MW |
8 words |
PTR, mW |
0x0012ffac 34b3 00cb 3084 8094 22ff 308a 2657 0000 |
MD |
4 doublewords |
PTR, MD |
0x0012ffac 00cb34b3 80943084 308a22ff 00002657 |
MQ |
2 quadwords |
PTR, MQ |
0x0012ffac 7ffdf00000000000 5f441a790012fdd4 |
Mu |
2-byte characters (UNICODE) |
PTR, Mu |
0x0012fc60 8478 77f4 FFFF 0000 0000 0000 |
Size specifier
Pointers as Arrays
If you have a pointer to an object you want to view as an array, you can use an integer to specify the number of array elements:
ptr,10
Note: This article Reprinted from: http://msdn.microsoft.com/en-us/library/75w45ekt (V = vs.100)