Re: how to debug a php script ( the C code beneath it)
| From: | Adi Mutu | Date: | Tue, 14 Feb 2012 07:37:14 +0000 |
| Subject: | Re: how to debug a php script ( the C code beneath it) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-57853@lists.php.net to get a copy of this message | ||
Perhaps i didn't explain correctly, my bad, sorry.
Basically what I want to see is the corresponding C code which is executed, i could put a break in
gdb, but how do I know at which C function to put it, if i don't know the internals of php very
good?
________________________________
From: Ángel González <keisial@gmail.com>
To: Adi Mutu <adi_mutu06@yahoo..com>
Cc: PHP Developers Mailing List <internals@lists.php.net>
Sent: Tuesday, February 14, 2012 1:11 AM
Subject: Re: [PHP-DEV] how to debug a php script ( the C code beneath it)
On 13/02/12 21:48, Adi Mutu wrote:
> Hello,
>
> Perhaps this is a stupid question, but i haven't coded in C in years and i'm not very
> familiar with development/debugging tools. If I have a php script say 20 lines,
> How can I see a path of the corresponding C code which is executed? What If i would like to
> break at a certain php line in the script, is it possible?
>
> Thanks,
Why do you want to do it?
It looks to me like that you are trying to solve a problem the hard way
by doing that.