The Xdebug extension helps you debugging your script by providing a lot of
valuable debug information.(http://pecl.php.net/package/xdebug)
Installation of xdebug
Open up ur terminal and do below
sudo pecl install xdebug
Output of terminal display like below
Build process completed successfully
Installing '/usr/lib/php5/20090626+lfs/xdebug.so'
install ok: channel://pecl.php.net/xdebug-2.1.2
configuration option "php_ini" is not set to php.ini location
You should add "extension=xdebug.so" to php.ini
editing the php.ini
sudo gedit /etc/php5/apache2/php.ini
append below line to php.ini
You can find xdebug.so from when you install pecl. (Output message in terminal)
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.remote_enable=1
eclipse configuration
Debug Configuration (Run>Debug Configuration)
Set Server Debugger to XDebug (not Zend Debugger)
Start Debugging
valuable debug information.(http://pecl.php.net/package/xdebug)
Installation of xdebug
Open up ur terminal and do below
sudo pecl install xdebug
Output of terminal display like below
Build process completed successfully
Installing '/usr/lib/php5/20090626+lfs/xdebug.so'
install ok: channel://pecl.php.net/xdebug-2.1.2
configuration option "php_ini" is not set to php.ini location
You should add "extension=xdebug.so" to php.ini
editing the php.ini
sudo gedit /etc/php5/apache2/php.ini
append below line to php.ini
You can find xdebug.so from when you install pecl. (Output message in terminal)
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.remote_enable=1
eclipse configuration
Debug Configuration (Run>Debug Configuration)
Set Server Debugger to XDebug (not Zend Debugger)
Start Debugging
Comments
Post a Comment