I have an Xcode project that will not display std :: string in C ++ when debugging. This is incredibly complicated because I have to resort to print statements or display each character one at a time in the LLDB console window, which is time consuming and difficult to read.
Every other person using the same project has the same problem, and other projects do not see this problem, so I think this is some kind of project. I am debugging and optimization is not enabled, so I fixed it as a problem. I also compared project settings between working projects and those who have this problem, and they seem to be the same in every way that they can be.
Here's an example of the result I get, *_M_p in this example is correct, the first character of the string is a question mark:

And this is what I get in the debug console if I check the string one character at a time:

I heard that switching back to GDB from LLVM may solve the problem, but GDB gave me other problems with debugging certain data types, so in this case I will have new problems.
source share