代碼: 選擇全部
sudo apt-get install php5-dev php-pear
sudo pecl install xdebug
Installing '/usr/lib/php5/20090626/xdebug.so'
install ok: channel://pecl.php.net/xdebug-2.2.1
configuration option "php_ini" is not set to php.ini location
代碼: 選擇全部
vi /etc/php5/apache2/php.ini
zend_extension="/usr/lib/php5/20090626/xdebug.so"