I tried to debug my small little lexer and ran into this problem: the QtCreator-Debugger does not display any content of my std::string-variable. I tried to debug it in console and I got the same result, just plain structure information.
The version of QtCreator I used a few days ago did display the content of the strings. All other STL-Elements like std::vector, std::map, std::multimap, etc. display the correct data, it's just the std::string class which does not do the right.
After several hours of googling I found a lot of web pages which describe the creation of pretty printers, my really noobish approaches to fix this didn't help. Any ideas how I can get rid of this bug?
Note: The 'content' of the string-variables will always be displayed as 'not accessible'. I use QtCreator 2.6 (QT5) for 64bit Linux OS.
Edit(1): I reinstalled everything from OS to Compilers and IDE... The strange is, when I build my project with optimization level 3 (-O3) QT can display std::strings.
The command line is the following: clang++ -std=c++11 -O3 -g -c foo.cpp
When I remove -O3 std::strings are < not accessible >. Any ideas?