博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
安装php xdebug扩展
阅读量:7071 次
发布时间:2019-06-28

本文共 869 字,大约阅读时间需要 2 分钟。

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!

转载地址:http://zskml.baihongyu.com/

你可能感兴趣的文章
阿里双十一大促,技术准备只做了这两件事情?
查看>>
创建 多个 MySQL docker 出现错误时
查看>>
PostgreSQL 单机多实例on XFS 润滑性测试
查看>>
亚马逊AWS CentOS7(linux)改为用户名密码登录
查看>>
android eclipse写layout文件失效问题解决
查看>>
jvm GC日志解读
查看>>
让mysqldump变成并发导出导入的魔法
查看>>
《C语言及程序设计》程序阅读——查找和排序
查看>>
架构师速成4.1-幼儿园要学会如何学习(转载自36氪)
查看>>
Native 性能稳定性极致优化
查看>>
Popclip的JSON格式化扩展
查看>>
usb_modeswitch使用详解
查看>>
什么场景应该用 MongoDB ?
查看>>
mysql悲观锁以及乐观锁总结和实践
查看>>
机器的自我进化
查看>>
.Net 垃圾回收机制原理(二)
查看>>
使用生成器展平异步回调结构,JS篇
查看>>
1.请求安全-- 一个简单的 单设备登录 单点登录
查看>>
Resx 文件无效,未能加载 .RESX 文件中使用的类型
查看>>
基础业务集成开发平台(BusinessWorks) - 概要设计篇
查看>>