Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70265 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57685 invoked from network); 21 Nov 2013 17:19:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Nov 2013 17:19:21 -0000 Authentication-Results: pb1.pair.com header.from=ellison.terry@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ellison.terry@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.178 as permitted sender) X-PHP-List-Original-Sender: ellison.terry@gmail.com X-Host-Fingerprint: 74.125.82.178 mail-we0-f178.google.com Received: from [74.125.82.178] ([74.125.82.178:50412] helo=mail-we0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/C3-36839-8904E825 for ; Thu, 21 Nov 2013 12:19:21 -0500 Received: by mail-we0-f178.google.com with SMTP id u56so42548wes.9 for ; Thu, 21 Nov 2013 09:19:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=be/Aq8GhuSyz7SzyK3t+wTpb3UziLe8SzlIvP2NTwaM=; b=HYT41n0/GImnCNvu5p36pP8GHDQ0M3uJ3DugoV5X4TBiqoKGmrgWGMywv1sut2jH53 YjXJY9V85RBCWR4A7/yTbmNl8NX51QD6FKwhagxRtZqOlp7bXgbEOE30fpg0lRn+8Gbh B4KSJbtm2rlBpPDHYhHET3QGJO9Unxl95pxiYEwWZVsVJVOsO0tcvTErsBKi4B24Ylk1 PBRFNo30M4l2sz3U7yfShtYMiv93puS1TGcnmZUF5Es+Na0WSwmJU930zGaVABw3XQte yREaT+infgP7q2qACyy4CoroZRKmRqBvXRoEpgw2bPTQ4aFwV5hFDdFPNKs+nHzKRx8I xZcQ== X-Received: by 10.180.206.138 with SMTP id lo10mr6684941wic.25.1385054358042; Thu, 21 Nov 2013 09:19:18 -0800 (PST) Received: from [192.168.1.91] (host81-129-110-107.range81-129.btcentralplus.com. [81.129.110.107]) by mx.google.com with ESMTPSA id qc10sm7355977wic.9.2013.11.21.09.19.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Nov 2013 09:19:17 -0800 (PST) Message-ID: <528E4093.5000503@gmail.com> Date: Thu, 21 Nov 2013 17:19:15 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Michael Wallner CC: PHP Internals References: <4E.7B.51208.63ACD825@pb1.pair.com> <528E1AF6.9050201@php.net> In-Reply-To: Content-Type: multipart/alternative; boundary="------------040305060007090600080408" Subject: Re: [PHP-DEV] RFC: phpdbg From: ellison.terry@gmail.com (Terry Ellison) --------------040305060007090600080408 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 21/11/13 14:43, Michael Wallner wrote: > On 21 November 2013 15:38, Joe Watkins wrote: >> On 11/21/2013 02:20 PM, Nikita Popov wrote: >>> I'm probably missing some context here, maybe you could explain how phpdbg >>> differs from something like xdebug? I mean, xdebug seems to be the >>> de-facto >>> debugging extension for PHP and has been for a long time, but we're not >>> bundling it. Why should we bundle phpdbg instead? >> This is not an extension, it is a SAPI module. The build system does >> not support external SAPI modules, the implementation requires Zend API >> which is not exported (or wasn't, has since been patched). > That still does not answer the question, though?! Nikita asked *two* questions. Joe answered the first. My reading of what he says, plus following the links to his write up on http://phpdbg.com, is because phpdbg is a SAPI -- as far as I can see esentially a debug variant of the CLI SAPI -- you can use it very much the same way that you can debug perl scripts with the "perl -d" switch. This is functionality that I for one REALLY miss with PHP. Maybe its just me, but I've tried using xdebug without modifying the source, and I find it very difficult to configure for anything other than getting smart tracebacks on errors. Also xdebug being an extension, you have to be careful about load order when debugging other extensions. I usually give up using xdebug and add (temporary) diagnostics to the PHP source code. As to Nikita's second Q: why should we bundle phpdbg instead of xdebug? I think that an average PHP developer would find a CLI debug interface that could be enabled through a command line switch a valuable addition to the PHP development toolset. This utility argument was valid for the -S option and the CLI webserver mode, so why not apply this same argument here? --------------040305060007090600080408--