RE: [PHP-DEV] how to debug a php script ( the C code beneath it)

From: Date: Mon, 13 Feb 2012 23:36:23 +0000
Subject: RE: [PHP-DEV] how to debug a php script ( the C code beneath it)
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
I've used etrace: http://ndevilla.free.fr/etrace/
with php recently, works nicely.  Produces output like:
    main 
    |   Crumble_make_apple_crumble 
    |   |   Crumble_buy_stuff 
    |   |   |   Crumble_buy 
    |   |   |   Crumble_buy (total: 5 times) 
    |   |   Crumble_prepare_apples 
    |   |   |   Crumble_skin_and_dice

Also, if you want to step-by-step debug I use eclipse CDT on a Linux virtual machine.

-----Original Message-----
From: Yader Hernandez [mailto:[email protected]] 
Sent: Monday, February 13, 2012 5:24 PM
To: Ángel González
Cc: Adi Mutu; PHP Developers Mailing List
Subject: Re: [PHP-DEV] how to debug a php script ( the C code beneath it)

It's also nice to see what PHP is actually doing and a way to learn the internals of PHP.

2012/2/13 Ángel González <[email protected]>

> 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.
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List To unsubscribe, 
> visit: http://www.php.net/unsub.php
>
>


Thread (11 messages)

« previous php.internals (#57841) next »