Re: PostgreSQL stops when adding a breakpoint in CLion

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PostgreSQL stops when adding a breakpoint in CLion
Дата
Msg-id 3715794.1641236904@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PostgreSQL stops when adding a breakpoint in CLion  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
Ответы Re: PostgreSQL stops when adding a breakpoint in CLion  (Stanislav Bashkyrtsev <stanislav.bashkirtsev@gmail.com>)
Список pgsql-hackers
Tomas Vondra <tomas.vondra@enterprisedb.com> writes:
> On 1/3/22 16:54, Stanislav Bashkyrtsev wrote:
>> - If I put a breakpoint before I start the process then everything works 
>> fine
>> - But if I put/remove a breakpoint after it's fully initialized - the 
>> process just stops

> Why do you think postgres quits? AFAIK CLion uses gdb or lldb for 
> debugging, which are the debugger of choice for many (most?) hackers on 
> this list. So that should work fine.

FWIW, it's normal in gdb that if you attach to an existing process,
the process stops until you say "continue".  I know nothing of CLion,
but it likely follows that convention too.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Remove inconsistent quotes from date_part error
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [PATCH] pg_stat_toast v0.4