ubuntu 9.10 server环境下源码安装xdebug
时间:2010-05-25 来源:reesun
下面,是源码安装的具体步骤:
一、解压源码包:
tar xvf xdebug-xxx.taz |
二、编译
<yourPhpPath>/bin/phpize make |
三、配置 1、将生产的xdebug.so拷贝到php的lib目录下:
cp modules/xdebug.so <yourPhpPath>/lib/php/extensions/no-debug-non-zts-xxx/ |
2、编辑php.ini,加入以下内容:
[Xdebug] |
四、测试
1、编写test.php:
<?php |
( ! ) Warning: require_once(inexistence) [function.require-once]: failed to open stream: No such file or directory in /usr/local/apache2/htdocs/test.php on line 2 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 319628 | {main}( ) | ../test.php:0 |
( ! ) Fatal error: require_once() [function.require]: Failed opening required 'inexistence' (include_path='.:/usr/local/php5/lib/php') in /usr/local/apache2/htdocs/test.php on line 2 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 319628 | {main}( ) | ../test.php:0 |