Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78590 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87833 invoked from network); 3 Nov 2014 21:03:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Nov 2014 21:03:12 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:44798] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/E1-10620-E8DE7545 for ; Mon, 03 Nov 2014 16:03:12 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 3542BE202D for ; Mon, 3 Nov 2014 21:03:08 +0000 (GMT) Date: Mon, 3 Nov 2014 21:03:07 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: PHP Developers Mailing List Message-ID: User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: PHPDBG scope From: derick@php.net (Derick Rethans) Hi, This is based on an email conversation between Joe Watkins and me. I asked him what the original scope of phpdbg was, and I've summarized his reply here: - PHPDBG was originally envisioned as a "gdb" for the Zend VM, with gdb like commands to debug, and step through code. - Support for breaking on an opline, something that no userland PHP users would need. - Support for breaking on lines, was an additional step later. - For PHP programmers, which spend most of their time at the console. - Not "intended to cover PHP's primary domain of HTTP requests". Then later, they "documented a way that you could use it to emulate an HTTP request, by setting those superglobals and executing your index.php - your code doesn't know the difference between a real request, and a cli-like script with the same super globals set." And Joe indicates, that with that addition, the "flood gates opened". He also said that he "would still like to remain in that narrow scope, phpdbg is still useful in it's current (pre xml stuff) form." and that it was never meant to "usurp xdebug", as "that is not where we were aiming, and it's an extremely unrealistic thing to even want." And I very much agree that the above bullet points, is what phpdbg's scope should be. Joe, if I got this wrong, then please say so :-) cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine