You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "Zainab-Saad (via GitHub)" <gi...@apache.org> on 2023/06/13 08:11:00 UTC

[GitHub] [age] Zainab-Saad commented on issue #986: How to use gdb to debug AGE source code ?

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: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org