Page 1 of 1

GDB and Pretty Printing

Posted: Mon Jul 02, 2018 6:06 pm
by mitrof
Hello,
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.

Setup:
MinGW (32-bit) from mingw.org
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)
d2.PNG
Now rebuild and start the debugger and it appears that the STL elements are being pretty printed.
BUT std::string is NOT. (see image)
d3.PNG
I don't see any issues in the debugger output.
Does anyone have any idea how to solve this ?
Thanks!

Re: GDB and Pretty Printing

Posted: Thu Jul 05, 2018 6:16 pm
by eranif
I think that the 'std::string' need another click... (maybe the pretty printers provided by STL are not recursive)