操作指导:
- 下载 xdebug-2.4.0rc3.tgz
- 解压。
tar -xvzf xdebug-2.4.0rc3.tgz
终端命令:
cd xdebug-2.4.0rc3
-
运行
phpize(若没有phpize,请参考FAQ)
显示内容应该有下面的内容:
Configuring for: ... Zend Module Api No: 20121212 Zend Extension Api No: 220121212
如果没有显示上面的内容,你的phpize版本可能有误。参考下面的this FAQ entry 并跳过后面的步骤。
- Run:
./configure
- Run:
make
- Run:
cp modules/xdebug.so /usr/lib/php/extensions/no-debug-non-zts-20121212
- Edit
/etc/php.ini
and add the line
zend_extension = /usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so
- Restart the webserver