PHPDBG scope
| From: | Derick Rethans | Date: | Mon, 03 Nov 2014 21:03:07 +0000 |
| Subject: | PHPDBG scope | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-78590@lists.php.net to get a copy of this message | ||
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