GDB and Pretty Printing

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

GDB and Pretty Printing

Post 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!
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: GDB and Pretty Printing

Post by eranif »

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