Author Topic: How can we use pretty printers with CodeBlocks  (Read 2403 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2290
How can we use pretty printers with CodeBlocks
« on: April 06, 2012, 01:36:10 pm »
I've spent two hours searching the forum and wiki for info on how to setup CodeBlocks to use pretty printers in GDB.

I've found a lot of info on how it doesn't work. But are there any instructions anywhere about which GDB to use and how, for example, pretty printers can be used to show a wxString?

svn build  rev 7904 (2012-03-19 21:48:48)   gcc 4.3.1 Windows/unicode - 32 bit

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5339
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: How can we use pretty printers with CodeBlocks
« Reply #1 on: April 06, 2012, 01:47:26 pm »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.