在Windows上和Linux上安装xdebug
2015-07-14 18:04
603 查看
1、在Windows上安装。写个测试页,里面写上phpinfo();把内容复制贴到http://www.xdebug.org/find-binary.php页面里,点击提交,之后会提示本机php对应的Xdebug版本,下载后放到php目录下的ext目录内,再把下面的配置写入php.ini内,之后重启apache服务器,再刷新测试页面,看界面上是否有xdebug字样。
![](http://img.blog.csdn.net/20140807093926462?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbW9sYWlmZW5n/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
2、在Linux上安装。
zend_extension="D:\server\php\php-5.3.8-Win32-VC9-x86\ext\php_xdebug-2.1.4-5.3-vc9.dll" [Xdebug] ;是否开启自动跟踪 xdebug.auto_trace = On ;是否开启异常跟踪 xdebug.show_exception_trace = On ;是否开启远程调试自动启动 xdebug.remote_autostart = On ;是否开启远程调试 xdebug.remote_enable = On ;允许调试的客户端IP ;远程调试的端口(默认9000) xdebug.remote_port=9001 ;调试插件dbgp xdebug.remote_handler=dbgp ;是否收集变量 xdebug.collect_vars = On ;是否收集返回值 xdebug.collect_return = On ;是否收集参数 xdebug.collect_params = On ;跟踪输出路径 xdebug.trace_output_dir="c:\xdebug" ;是否开启调试内容 xdebug.profiler_enable=On ;调试输出路径 xdebug.profiler_output_dir="c:\xdebug" xdebug.remote_host=localhost
2、在Linux上安装。
1、wget http://xdebug.org/files/xdebug-2.2.5.tgz 2、tar -xzf xdebug-2.2.5.tgz 3、cd xdebug-2.2.5 4、phpize 5、./configure --enable-xdebug 6、make && make install 7、在php.ini里加入扩展 vim /etc/php.ini extension=xdebug.so // 这里要注意了,若是重启php-fpm时有报这个扩展的warning,那么就得这么写了zend_extension=完整路径 8、service php-fpm restart; 9、写phpinfo测试页,看是否有xdebug项
相关文章推荐
- linux下 切换双显卡调整屏幕亮度(简单两条命令搞定)
- Linux之VI常用命令
- 在linux(ubuntu)下部署Egret
- U盘安装Centos7.1操作系统的问题记录
- ubuntu下编译时出现“make: arm-linux-gcc:命令未找到”的问题
- linux下mysql的远程连接
- Linux NetworkManager服务介绍
- Linux 0.11下信号量的实现和应用
- centos上部署邮件服务器
- linux下的man和info命令
- 每天一个linux命令day2【ss命令】
- 使用ffmpeg进行图像格式转换以及图像缩放/sws_scale/linux/c++/c/rgb-yuv420
- 在Ubuntu中通过update-alternatives切换软件版本
- 每天一个linux命令(12):more命令
- linux基础之spi驱动程序理解
- linux c获取mac
- linux系统中python导入其他的目录下的文件
- linux c获取IP地址
- linux ioctl函数
- linux 常用命令汇总