displaying debug info - Mailing list pgsql-hackers

From Bruce Momjian
Subject displaying debug info
Date
Msg-id 199807311523.LAA25554@candle.pha.pa.us
Whole thread Raw
List pgsql-hackers
When running postgresql inside gdb, I have always found it difficult to
dump out structures.  Here is something I found, that I have added to
the developers FAQ:

---------------------------------------------------------------------------

You can print nodes easily inside gdb. First, to disable output
truncation:


        (gdb) set print elements 0


You may then use either of the next two commands to print out List,
Node, and structure contents. The first prints in a short format, and
the second in a long format:


        (gdb) call nodeToString(any_pointer)
        (gdb) call pprint(any_pointer)


--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] OR clause status report
Next
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] OR clause status report