pecl xdebug

PHP debug extension

install
# pecl install xdebug
# vi /etc/php.ini
add the lines
zend_extension=/usr/lib/php/modules/xdebug.so
xdebug.default_enable = On
# service httpd reload


verify
check xdebug is listed in httpd
phpinfo()
output and cli
$ php -m
output

problems
if after installing xdebug you run
pear list
and get the error
PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0

you may need to set up separate php.ini files for HTTPD PHP and CLI PHP !

HTTPD PHP.INI
/etc/php.ini
extension=xdebug.so
xdebug.default_enable = On


CLI PHP.INI
/etc/php_cli.ini
zend_extension=/usr/lib/php/modules/xdebug.so
xdebug.default_enable = On



REFERRERS
PhpPecl

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki