Re: Debug contrib/cube code - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Debug contrib/cube code
Date
Msg-id 937.1305306803@sss.pgh.pa.us
Whole thread Raw
In response to Re: Debug contrib/cube code  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, May 13, 2011 at 12:12 PM, Nick Raj <nickrajjain@gmail.com> wrote:
>> Can you throw some light on how to debug contrib/cube code?

> On my system, if I configure --enable-debug, the contrib modules are
> compiled with debug support as well.

Depending on what platform you're using, it may be hard to get
breakpoints in dynamically loaded modules to work.  On many platforms it
helps to make sure that the module is loaded before you attach to the
backend process with gdb.  To do that, you can either call one of its
functions, or just do a manual LOAD command.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Debug contrib/cube code
Next
From: Merlin Moncure
Date:
Subject: hint bit cache v6