php5.6下载|php5中Xdebug配置安装步骤介绍

更新时间:2019-07-19    来源:apache    手机版     字体:

【www.bbyears.com--apache】

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()

php5中Xdebug配置安装步骤介绍

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

现在我们测试一段代码

php5中Xdebug配置安装步骤介绍

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

本文来源:http://www.bbyears.com/jiaocheng/58898.html

热门标签

更多>>

本类排行