Zainab-Saad commented on issue #986:
URL: https://github.com/apache/age/issues/986#issuecomment-1588775250

   For using gdb to debug AGE, you need to attach the process of postgres 
running instance to gdb. You can find the PID in psql interface using:
   `SELECT pg_backend_pid();`
   In a new terminal, use
   `sudo gdb`
   Then when a gdb interface is launched, attach the process by using the PID 
found above
   `attach <pid>`
   The process has been attached but you need to give the path to AGE source 
code files as
   `dir <path_to>/age`
   
   Now, you can use standard gdb commands to debug code. For example, set a 
breakpoint at a function as:
   `b <function_name>`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to