Visual Studio debugger doesn't display std::string properly in debug
问题 Me and my team are having an issue with Visual Studio displaying gibberish instead of proper string contents when I pause my program. The string inside has correct data, it's just that the debugger of VS gets lost somehow. I marked the correct contents in green, incorrect in red. You can see that the std::string defined as const std::string testStdString = "contents of std::string"; Displays as "\bÄĎD\x19" in debug hover and watch window. But the C-string from .c_str() displays fine. Console