Re: gdb

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: gdb
Дата
Msg-id 3376.1404135832@sss.pgh.pa.us
обсуждение исходный текст
Ответ на gdb  (Ravi Kiran <ravi.kolanpaka@gmail.com>)
Список pgsql-novice
Ravi Kiran <ravi.kolanpaka@gmail.com> writes:
> how do we attach a gdb to a running postgres service in eclipse, I am
> executing a program in eclipse, I gave some break points in that, but the
> control goes to main.c and never comes back. how do we make sure that the
> query we execute logically touches the break points.

I think perhaps you attached to the wrong subprocess.  I'm not an eclipse
user, but there are some hints here:

https://wiki.postgresql.org/wiki/Working_with_Eclipse#Debugging_with_child_processes

If you're not too sure which child process is serving your session, try
doing "select pg_backend_pid();".

            regards, tom lane


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

Предыдущее
От: Ravi Kiran
Дата:
Сообщение: gdb
Следующее
От: Ravi Kiran
Дата:
Сообщение: tool to be used