Add the string format specifier ,s after the variable name.
MASM expression | Debugger expression |
---|---|
String | String,s |
Because C strings end with a null (ASCII 0) character, the debugger displays all characters from the first byte of the variable up to the next null byte in memory when you request a string display. If you intend to debug an assembly-language program, and you want to view strings in the Watch window, you should delimit string variables with a null character. You can view null-terminated or unterminated strings in the Memory window.