Re: debugging pgsql in pgadmin - Mailing list pgadmin-support

From Dave Page
Subject Re: debugging pgsql in pgadmin
Date
Msg-id 937d27e10907060807n17248353lfa224a384a368977@mail.gmail.com
Whole thread Raw
In response to debugging pgsql in pgadmin  (fatmijumar fatmijumar <fatmijumar@gmail.com>)
List pgadmin-support
On Mon, Jul 6, 2009 at 3:57 PM, fatmijumar
fatmijumar<fatmijumar@gmail.com> wrote:
> 1. Environment
>
> - postgresql 8.4.0 + plpgsql debugger
> - pgadmin III v.1.10.0
>
> We debug functions with pgadmin, and it is OK (including stepping into other
> functions, thanks for your help).
>
> 2. Question
>
> The question is: suppose many pgsql functions with many arguments. Each time
> we need to debug a function, we need to type all the parameters in the debug
> window. Is it possible to call a function in debug mode otherwise? Can we
> anyway store this debug function call? Do we need to type the value of the
> parameters each time?

It should remember them if you debug the same function twice in
succession. It'll forget if you debug a different one though.

Another option is to set a global breakpoint on a function, and then
call it from a query window, or your application. The downside with
that is that it'll break on the first session which calls the
function, which may not be yours if there are multiple users on your
server (which is actually the whole point of global breakpoints of
course)!.


-- 
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com


pgadmin-support by date:

Previous
From: Pedro Doria Meunier
Date:
Subject: Re: Segmentation fault
Next
From: Durumdara
Date:
Subject: [Enh by SQLyog] Convert table data / row(s) to SQL (inserts/updates)