- You want to get your hands on a debug build of
mod_php(with symbols) or build your own (
- You should configure your Apache to always keep exactly one worker process instance up (which will be the instance you debug), that is, set
StartServersall to 1. Also make sure any timeout parameters are generously set
gdbor any graphical interface to
dddor Eclipse CDT) to attach to the one and only Apache worker process. Stick a breakpoint in one of the PHP sources etc. and continue.
- Point your browser to your webserver and access a PHP page. Your breakpoint will trigger. If you want to wake the debugger at a particular point in your PHP script execution, generate a
SIGTRAPfrom PHP and
gdbwill normally oblige you.