GDB and Pretty Printing

CodeLite installation/troubleshooting forum
CodeLite Curious
Posts: 1
Joined: Thu Oct 12, 2017 4:09 am
Genuine User: Yes
IDE Question: C++

GDB and Pretty Printing

Post by mitrof » Mon Jul 02, 2018 6:06 pm

I've spent so much time trying to do something as simple as getting pretty printing to work, but I'm stuck. I hope someone can help.

MinGW (32-bit) from
CodeLite 12.0.0
Windows 10

All works great except when I debug STL elements they don't pretty print. This is expected since the MinGW gdb doesn't include Python support.

So, I install:
gdb-python32.exe from the same MinGW distribution.
I also install Python (32-bit).

And I set gbd to the new gbd-python27.exe in Settings->Build Settings... (see image)
Now rebuild and start the debugger and it appears that the STL elements are being pretty printed.
BUT std::string is NOT. (see image)
I don't see any issues in the debugger output.
Does anyone have any idea how to solve this ?
You do not have the required permissions to view the files attached to this post.

User avatar
CodeLite Plugin
Posts: 5914
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++

Re: GDB and Pretty Printing

Post by eranif » Thu Jul 05, 2018 6:16 pm

I think that the 'std::string' need another click... (maybe the pretty printers provided by STL are not recursive)
Make sure you have read the HOW TO POST thread

Post Reply