Using a debugger with PHP [message #170842] |
Wed, 01 December 2010 17:59 |
August Karlstrom
Messages: 16 Registered: October 2010
Karma: 0
|
Junior Member |
|
|
Have anyone successfully installed the PHP debugger APD with PHP 5.3?
When I try to install APD with the command `sudo pecl install apd' I get
the following error message:
/build/buildd/php5-5.3.2/pear-build-download/apd-1.0.1/php_apd.c:967:
error: ‘struct _zend_compiler_globals’ has no member named ‘extended_info’
Any ideas? Is there any other debugger I should try instead? I'm using
Ubuntu 10.04 by the way.
Regards,
August
--
The competent programmer is fully aware of the limited size of his own
skull. He therefore approaches his task with full humility, and avoids
clever tricks like the plague. --Edsger Dijkstra
|
|
|
Re: Using a debugger with PHP [message #170844 is a reply to message #170842] |
Thu, 02 December 2010 08:04 |
Adam Harvey
Messages: 25 Registered: September 2010
Karma: 0
|
Junior Member |
|
|
On Wed, 01 Dec 2010 18:59:18 +0100, August Karlstrom wrote:
> Any ideas? Is there any other debugger I should try instead? I'm using
> Ubuntu 10.04 by the way.
XDebug[0] tends to be the standard answer for people needing interactive
debugging. There's a list of frontends that can connect to it in the
XDebug manual[1], and Ubuntu has a php5-xdebug package you can install
without needing to compile, if you're using their pre-packaged PHP.
Adam
[0] http://xdebug.org/
[1] http://xdebug.org/docs/remote
|
|
|
Re: Using a debugger with PHP [message #170849 is a reply to message #170844] |
Thu, 02 December 2010 14:59 |
August Karlstrom
Messages: 16 Registered: October 2010
Karma: 0
|
Junior Member |
|
|
On 2010-12-02 09:04, Adam Harvey wrote:
> XDebug[0] tends to be the standard answer for people needing interactive
> debugging. There's a list of frontends that can connect to it in the
> XDebug manual[1], and Ubuntu has a php5-xdebug package you can install
> without needing to compile, if you're using their pre-packaged PHP.
>
> Adam
>
> [0] http://xdebug.org/
> [1] http://xdebug.org/docs/remote
Thanks for the tip. I have installed and configured Xdebug but
apparently the command line client debugclient is not included in the
package php5-xdebug (it is also said to be obsolete). The Firefox plugin
"easy Xdebug" is also designed to be used with Netbeans which I don't
use. Do you know if there is any other freestanding client? Or can I use
Xdebug with GDB?
Regards,
August
--
The competent programmer is fully aware of the limited size of his own
skull. He therefore approaches his task with full humility, and avoids
clever tricks like the plague. --Edsger Dijkstra
|
|
|