Visual C++ Debugging: How to display UNICODE strings in Watch/QuickWatch window?
Q: I set a breakpoint in my source code to see the value of a string variable:
<br>
http://www.codeguru.com/img/FAQ/326350/Code.gif
<br>
But in QuickWatch and Watch windows I see only the first character of string, like in images below:
<br>
http://www.codeguru.com/img/FAQ/326350/QuickWatch.gif
http://www.codeguru.com/img/FAQ/326350/Watch.gif
<br>
What can I do to see the entire string contents?
A: Your build configuration is a UNICODE one, i.e. 'UNICODE' is added in 'Project Settings\C/C++\Preprocessor definitions'.
There are several solutions for the problem:
<br>
<br><br>