Visual Studio 2013 debugger showing weird values for std::string
问题 I have a large cmake generated solution with many projects in it. For some reason I cannot view the contents of a string because according to the debugger _Bx._Buf contains some garbage. text.c_str() returns correctly "Hello" . The problem does not only occur for local strings. Functions that return std::string also appear to be garbage in debugger whereas in reality they are OK. For clarity: the screenshot was made after the assignment line was executed. So it is not that text is