Re: gdb with postgres

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: gdb with postgres
Дата
Msg-id BANLkTinuZf_dyUue+G2XwJ9yZY1cerxasw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: gdb with postgres  (HuangQi <huangqiyx@gmail.com>)
Список pgsql-hackers
On Mon, Jun 6, 2011 at 9:47 AM, HuangQi <huangqiyx@gmail.com> wrote:
> If I enter c, gdb will directly finish executing this process and current
> query will finish. Furthermore, if I enter next query, gdb will not debug it
> and stay in continue status.

Hmm, that must mean your breakpoint isn't properly set.

Instead of doing gdb postgres and then using attach, try just doing
gdb -p PIDNAME, then set your breakpoint, then continue.  That's how
I've always done it, anyway...

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: HuangQi
Дата:
Сообщение: Re: gdb with postgres
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: gdb with postgres