how to debug the codes in the PostgresMain() from the begining of this function to the "for (;;)" loop that handles the connection?
how to debug the codes in the PostgresMain() from the begining of this function to the "for (;;)" loop that handles the connection?
От:
sunpeng <bluevaley@gmail.com>
Дата:
how to debug the codes in the PostgresMain() from the begining of this function to the "for (;;)" loop that handles the connection?
if i use eclipse cdt to attach the postgres process forked by postmaster, this part of codes from the begining of this PostgresMain() to the "for (;;)" loop could not be debugged. So anybody know how to debug this part codes? thanks.
thanks
if i use eclipse cdt to attach the postgres process forked by postmaster, this part of codes from the begining of this PostgresMain() to the "for (;;)" loop could not be debugged. So anybody know how to debug this part codes? thanks.
thanks
how to debug the codes in the PostgresMain() from the begining of this function to the "for (;;)" loop that handles the connection?
От:
sunpeng <bluevaley@gmail.com>
Дата:
how to debug the codes in the PostgresMain() from the begining of this function to the "for (;;)" loop that handles the connection?
if i use eclipse cdt to attach the postgres process forked by postmaster, this part of codes from the begining of this PostgresMain() to the "for (;;)" loop could not be debugged. So anybody know how to debug this part codes? thanks.
thanks
peng
if i use eclipse cdt to attach the postgres process forked by postmaster, this part of codes from the begining of this PostgresMain() to the "for (;;)" loop could not be debugged. So anybody know how to debug this part codes? thanks.
thanks
peng
Re: how to debug the codes in the PostgresMain() from the begining of this function to the "for (;;)" loop that handles the connection?
От:
Alvaro Herrera <alvherre@commandprompt.com>
Дата:
sunpeng escribió: > how to debug the codes in the PostgresMain() from the begining of this > function to the "for (;;)" loop that handles the connection? > if i use eclipse cdt to attach the postgres process forked by postmaster, > this part of codes from the begining of this PostgresMain() to the "for > (;;)" loop could not be debugged. So anybody know how to debug this part > codes? thanks. Try using the -W option to postmaster. That makes the newly forked process sleep for a while, giving you time to attach a debugger to it. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.