2011年10月4日 星期二

PHP Xdebug安裝

PHP好用的debug和profiling工具: Xdebug
$ git clone git://github.com/derickr/xdebug.git
$ cd xdebug
$ phpize
$ ./configure
$ make
$ cp modules/xdebug.so /to/wherever/you/want/it

php.ini加上
zend_extension="/wherever/you/put/it/xdebug.so"
重啟apache2, 如果phpinfo頁有出現Xdebug的字就成功了!

沒有留言: