Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CLion STL containers not displaying correctly in debugger on Fedora 23

When I use the GDB of CLion for debugging on vectors for example, no value is printed at all, even if the vector is in fact filled. I have activated the GNU C++ view, which effectively hides the M inner variables, but it still doesn't show anything. I tried searching on google but I can't find any info about it, as it is written everywhere this is provided out of the box.

I am on Fedora 23, I am using g++ 5.3.1, I am on CLion 2016.2 with the bundled CMake and GDB.

Thanks in advance.

like image 523
ZamenWolk Avatar asked Jul 26 '16 10:07

ZamenWolk


1 Answers

Go here and UNCHECK this checkbox. It helped to me.

Settings -> Build, Execution, Delpoyment -> Debugger -> Data Views -> C/C++ -> "Enable GNU C++ library renders" (screenshot)

then restart debug session

like image 93
Michael Lebedev Avatar answered Oct 14 '22 08:10

Michael Lebedev