安装php xdebug扩展

简介:

xdebug的php作用有很多,我使用的原因是可以结合phpunit,通过单元测试查看代码覆盖率,作为自测参考。

 

安装步骤如下,其实就是源码目录中的READ文件内容(任何开源代码的README文件都很有必要读读),十分简单,希望对你有用,


1. Unpack the tarball: tar -xzf xdebug-2.2.x.tgz.  Note that you do 
not need to unpack the tarball inside the PHP source code tree. 
Xdebug is compiled separately, all by itself, as stated above.

2. cd xdebug-2.2.x

3. Run phpize: phpize 
   (or /path/to/phpize if phpize is not in your path).

4. ./configure --enable-xdebug (or: ../configure --enable-xdebug 
   --with-php-config=/path/to/php-config if php-config is not in your 
   path)

5. Run: make

6. cp modules/xdebug.so /to/wherever/you/want/it

7. add the following line to php.ini: 
   zend_extension="/wherever/you/put/it/xdebug.so"

8. Restart your webserver.

9. Write a PHP page that calls "phpinfo();" Load it in a browser and 
   look for the info on the xdebug module.  If you see it, you have been 
   successful! 

声明:如有转载本博文章,请注明出处。您的支持是我的动力!文章部分内容来自互联网,本人不负任何法律责任。

本文转自bourneli博客园博客,原文链接: http://www.cnblogs.com/bourneli/archive/2012/05/25/2517998.html ,如需转载请自行联系原作者
相关文章
|
2月前
|
运维 Unix Linux
Linux系统 PHP安装expect扩展详解
Linux系统 PHP安装expect扩展详解
39 5
|
4月前
|
应用服务中间件 PHP nginx
|
7月前
|
Apache PHP 数据安全/隐私保护
(MAC)PHP Apache 安装与配置
(MAC)PHP Apache 安装与配置
222 0
|
7月前
|
关系型数据库 MySQL Unix
PHP MySql 安装与连接
PHP MySql 安装与连接
130 0
|
4月前
|
Linux 应用服务中间件 PHP
Linux下搭建PHP环境-源码编译安装PHP7.2
Linux下搭建PHP环境-源码编译安装PHP7.2
153 0
|
15天前
|
NoSQL Linux PHP
php添加redis扩展 linux和windos图文详解 l
php添加redis扩展 linux和windos图文详解 l
3 0
|
27天前
|
应用服务中间件 Linux PHP
Linux下安装php环境并且配置Nginx支持php-fpm模块
Linux下安装php环境并且配置Nginx支持php-fpm模块
28 0
|
3月前
|
PHP Windows
php扩展com_dndnet(PHP与.NET框架进行交互)
php扩展com_dndnet(PHP与.NET框架进行交互)
php扩展com_dndnet(PHP与.NET框架进行交互)