Re: debugging C functions

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: debugging C functions
Дата
Msg-id 87vee4szv3.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: debugging C functions  ("Islam Hegazy" <islheg@gawab.com>)
Список pgsql-general
"Islam Hegazy" <islheg@gawab.com> writes:

> I do the same but I use the ddd debugger
> 1) Load the shared library from the SQL
> 2) Open the .c file of my function
> 3) Place the break points
> 4) Execute the sql statement 'Select * from Myfn(...);'
>
> The result is displayed and the debugger doesn't stop at the breakpoints.

Are you sure you're attaching to the right process?

One way to do it is to run select pg_backend_pid() from psql and attach to
that pid.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com


В списке pgsql-general по дате отправления:

Предыдущее
От: Tino Wildenhain
Дата:
Сообщение: Re: multimaster
Следующее
От: Franz.Rasper@izb.de
Дата:
Сообщение: Re: Corruption of files in PostgreSQL