Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57841 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5772 invoked from network); 13 Feb 2012 23:36:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2012 23:36:29 -0000 Authentication-Results: pb1.pair.com header.from=cpriest@zerocue.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cpriest@zerocue.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zerocue.com designates 74.115.204.41 as permitted sender) X-PHP-List-Original-Sender: cpriest@zerocue.com X-Host-Fingerprint: 74.115.204.41 relay-hub205.domainlocalhost.com Received: from [74.115.204.41] ([74.115.204.41:14503] helo=relay-hub205.domainlocalhost.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/E8-61403-A7E993F4 for ; Mon, 13 Feb 2012 18:36:28 -0500 Received: from MBX202.domain.local ([169.254.19.147]) by HUB205.domain.local ([74.115.204.41]) with mapi id 14.01.0355.002; Mon, 13 Feb 2012 18:36:23 -0500 To: Yader Hernandez , =?iso-8859-1?Q?=C1ngel_Gonz=E1lez?= CC: Adi Mutu , PHP Developers Mailing List Thread-Topic: [PHP-DEV] how to debug a php script ( the C code beneath it) Thread-Index: AQHM6pEKJGB4C7DGR06iFDKFlRr/cpY7yEYAgAADpoD//68QIA== Date: Mon, 13 Feb 2012 23:36:23 +0000 Message-ID: <9570D903A3BECE4092E924C2985CE48539BDA259@MBX202.domain.local> References: <1329166139.76210.YahooMailNeo@web43506.mail.sp1.yahoo.com> <4F399898.6060500@gmail.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.64.27] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: [PHP-DEV] how to debug a php script ( the C code beneath it) From: cpriest@zerocue.com (Clint M Priest) I've used etrace: http://ndevilla.free.fr/etrace/ with php recently, works = nicely. Produces output like: main=20 | Crumble_make_apple_crumble=20 | | Crumble_buy_stuff=20 | | | Crumble_buy=20 | | | Crumble_buy (total: 5 times)=20 | | Crumble_prepare_apples=20 | | | Crumble_skin_and_dice Also, if you want to step-by-step debug I use eclipse CDT on a Linux virtua= l machine. -----Original Message----- From: Yader Hernandez [mailto:yader.hernandez@gmail.com]=20 Sent: Monday, February 13, 2012 5:24 PM To: =C1ngel Gonz=E1lez 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 int= ernals of PHP. 2012/2/13 =C1ngel Gonz=E1lez > 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=20 > > and > i'm not very familiar with development/debugging tools. If I have a=20 > php script say 20 lines, > > How can I see a path of the corresponding C code which is executed?=20 > > What > If i would like to break at a certain php line in the script, is it=20 > possible? > > > > Thanks, > Why do you want to do it? > It looks to me like that you are trying to solve a problem the hard=20 > way by doing that. > > > -- > PHP Internals - PHP Runtime Development Mailing List To unsubscribe,=20 > visit: http://www.php.net/unsub.php > >