Page 1 of 1

GDB pretty printers

Posted: Sat Oct 04, 2014 6:28 am
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

Re: GDB pretty printers

Posted: Sat Oct 04, 2014 11:18 am
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

Re: GDB pretty printers

Posted: Sat Oct 04, 2014 7:20 pm
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.