GDB pretty printers

CodeLite installation/troubleshooting forum
pixerit
CodeLite Curious
Posts: 2
Joined: Sat Oct 04, 2014 6:23 am
Genuine User: Yes
IDE Question: C++
Contact:

GDB pretty printers

Post by pixerit »

I have a working GDB pretty printer that I've developed and works under GDB. However, under CodeLite, the CodeLite watch window and locals windows don't use the printers. They still show the raw format. If I do a print from the GDB output windows inside CodeLite, my printer is used.

How can I get CodeLite to use the printers in its watch and locals windows?

I appreciate any help you can provide.
Thanks,
Chris
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: GDB pretty printers

Post by eranif »

Did you enable:
Settings->GDB Settings->Enable pretty printers ?

You should also place your printers under

Code: Select all

C:\Users\<USER-NAME>\AppData\Roaming\codelite\gdb_printers
Eran
Make sure you have read the HOW TO POST thread
pixerit
CodeLite Curious
Posts: 2
Joined: Sat Oct 04, 2014 6:23 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: GDB pretty printers

Post by pixerit »

I do have Enable pretty printers checked.

I'm running on Linux, so I've configured ~/.gdbinit to enable my printers. I also tried using startup commands in CodeLite but it had no effect. The printers are loaded and work with print from the GDB console panel inside CodeLite, so I'm not sure why the locals panel won't use them.
Post Reply