php5中Xdebug配置安装步骤介绍

Xdebug版本下载

http://www.xdebug.com/download.php

注意在下载Xdebug时我们必须查看自己php版本之后与xdebug一样,并且要查看你的php是线程安全或非线程序安全的,否则可以没有用哦。

下载好 php_xdebug.dll 之后我们复制到你的php ext目录,如

D:/phpStudy/PHP5/ext/php_xdebug.dll

这个是我本地的,放好之后再把php.ini文件进行修改,加入下面代码

 代码如下 复制代码

[Xdebug]
zend_extension="D:/phpStudy/PHP5/ext/php_xdebug.dll"
xdebug.collect_return=1
xdebug.show_mem_delta=1
xdebug.show_exception_trace=1
xdebug.idekey="PHPStorm"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.auto_trace=0  错误跟踪提示0关闭,1打开
xdebug.trace_output_name=%s.trace.log
xdebug.trace_output_dir="E:/XDebug/Trace"
xdebug.profiler_enable=0
xdebug.profiler_output_name=%s.profiler.log
xdebug.profiler_output_dir="E:/XDebug/Profiler"

好了最后一步重启apache就可以解决了哦,然后我们来检查一下Xdebug配置安装是否成功了,我们在一个php测试一下phpinfo()


如果在截图处可看到with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
就代码成功了

现在我们测试一段代码

是不是非常详细的告诉我们错误信息了呀。

时间: 2024-07-30 11:57:41

php5中Xdebug配置安装步骤介绍的相关文章

Windows2003服务器IIS6+PHP5.4.3配置安装教程

一.准备相关组件 1.安装FastCgi for IIS6 请参考Windows Server 2003 安装fastcgi:http://www.111cn.net/sys/Windows/49843.htm 2.VC2008库 软件下载 Microsoft Visual C++ 2008 SP1 32位系统适用:vcredist_x86.exe 64位系统适用:vcredist_x64.exe 注意:没有安装Vc2008库是无法安装VC9 x86 的PHP脚本环境的. 3.PHP脚本环境 P

linux中postfix配置安装

  postfix是Wietse Venema在IBM的GPL协议之下开发的MTA(邮件传输代理)软件.postfix是Wietse Venema想要为使用最广泛的sendmail提供替代品的一个尝试,下面我们来看看postfix配置安装方法. 安装Postfix  代码如下   yum install postfix system-switch-mail 设定postfix  代码如下   vi /etc/postfix/main.cf myhostname = ha.xxx.kh.edu.t

ubuntu系统中Nginx环境配置安装步骤

安装nginx sudo apt-get install nginx Ubuntu安装之后的文件结构大致为:     所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下     程序文件在/usr/sbin/nginx     日志放在了/var/log/nginx中     并已经在/etc/init.d/下创建了启动脚本nginx     默认的虚拟主机的目录设置在了/var/www/nginx-default (有的

java中FCKeditor配置安装与常用问题解决

FCKeditor资料下载及介绍   官方网站:http://www.fckeditor.net    1.下载FCKeditor *.*.*    2.下载fckeditor-java-*.*.*-bin.zip    3.下载fckeditor-java-demo-*.*.*.war (可作为参考)     demo的查看.doc文档的查看       下载的说明,涉及java还得下个包    war工程的查看   安装与通过JavaScript调用FCKeditor的两种方法    部署:

Eclipse中SVN的安装步骤(两种)和使用方法

转载自: http://blog.csdn.net/vebasan/article/details/6186344 一.给Eclipse安装SVN,最常见的有两种方式:手动方式和使用安装向导方式.具体步骤如下:   方式一:手动安装 1.从官网下载site-1.6.9.zip文件,网址是:subclipse.tigris.org 2.从中解压出features与plugins文件夹,复制到E:/MyEclipse/myPlugin/svn里面,其它的*.xml文件不要. 3.在E:/MyEcli

Redis cluster集群配置的步骤介绍

redis cluster使用 redis集群方案 1,客户端分片.如:取余等 2, 代理(proxy)分片.由proxy绝对数据存取,如:twemproxy. 3,redis cluster.无中心模式, 4, codis(豌豆荚开发的解决方案) redis cluster参考文档:http://redisdoc.com/topic/cluster-tutorial.html 通常情况下,redis集群最少需要6台,三主三从 [root@yum-down opt]# mkdir `seq 70

MySQL 5.5中如何配置安装半同步复制

确认master和slave上是否开启have_dynamic_loading master MASTER(none) 10:54:58>show variables like 'have_dynamic_loading'; +----------------------+-------+ | Variable_name        | Value | +----------------------+-------+ | have_dynamic_loading | YES   | +----

windows2003中IIS配置安装图文教程

Windows Server 2003 包含了网页服务器最基本的服务:Internet Information Services(IIS,互联网信息服务),本文讲解如何在Windows 2003下安装IIS.   一.放入系统光盘,加载光盘映象       二.进入"添加或删除程序"     单击"开始"菜单,找到"控制面板"选项卡,再单击"添加或删除程序".   三.增加组件     单击"添加/删除Windows

CentOS FastDFS中Client配置安装教程

# 连接超时时间 # 默认值 30s connect_timeout=30 # 网络超时时间 # 默认值 30s network_timeout=60 # the base path to store log files 存放日志的根目录 base_path=/rekfan.com/fastdfs_data # tracker_server can ocur more than once, and tracker_server format is #  "host:port", hos