
Debugging PHP Extensions
GDB, or the GNU Project Debugger, allows you to debug a program while it is executing. GDB can start a program, stop it on specified conditions, examine the execution environment when the program is stopped and allow you to change things inside the running program itself. GDB Reference Documentation Configuring GDB Let’s get started by changing to the php-src directory $ cd ~/php-src The .gdbinit script is provided with the PHP source distribution....