Re: PHP Source Code Help
| From: | Jani Taskinen | Date: | Mon, 16 Jul 2007 08:08:28 +0000 |
| Subject: | Re: PHP Source Code Help | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30959@lists.php.net to get a copy of this message | ||
On Sun, 2007-07-15 at 19:06 -0700, Stanislav Malyshev wrote:
> >> Use any of the debuggers available to step into it and see which
> >> function is called.
> > Since PHP is invoked by Apache server, how can I hockup gcc with php ?
> > is there an easy way to do this ?
>
> easier way would be to run apache single-process with httpd -X under gdb
> or attach to a certain process with gdb -p.
And easiest is to debug with CLI:
# gdb --arg php script-to-debug.php
:)
--Jani