• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP之路——Xdebug扩展

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

1.首先下载相应的php_xdebug.dll,下载地址:

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

2.将下载文件复制到你的php下的ext目录里。

3.编辑php.ini文件,加入下面信息:

[Xdebug]
zend_extension=php_xdebug.dll
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_mode = "req"
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
xdebug.idekey="PHPSTORM"
xdebug.remote_autostart = no
xdebug.trace_output_dir="../Projects/xdebug"
xdebug.profiler_output_dir="../Projects/xdebug"
xdebug.idekey="PHPSTORM"

  

  后面的目录“../Projects/xdebug”为你想要放置Xdebug输出的数据文件的目录,可自由设置。

参数参考设置:

 

    xdebug.default_enable=on

  ;显示默认的错误信息

  xdebug.auto_trace=on

  ;自动打开“监测函数调用过程”的功模。该功能可以在你指定的目录中将函数调用的监测信息以文件的形式输出。此配置项的默认值为off。

  xdebug.collect_params=on

  ;打开收集“函数参数”的功能。将函数调用的参数值列入函数过程调用的监测信息中。此配置项的默认值为off。

  xdebug.collect_return=on

  ;打开收集“函数返回值”的功能。将函数的返回值列入函数过程调用的监测信息中。此配置项的默认值为off。

  xdebug.max_nesting_level=100

  xdebug.profiler_enable=on

  ;打开效能监测器。

  xdebug.remote_enable=on

  ;是否调试

  xdebug.remote_host=localhost

  xdebug.remote_port=9000

  ;调试端口

  xdebug.remote_handler=dbgp

  ;选择协议

  xdebug.trace_output_dir="d:\Temp"

  ;设定函数调用监测信息的输出文件的路径。

  xdebug.profiler_output_dir="d:\Temp"

  ;设定效能监测信息输出文件的路径。

 

至此,安装完成,可以通过<?php phpinfo();?>查看:

 

 


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
在 PHP 中养成7个面向对象的好习惯发布时间:2022-07-10
下一篇:
利用PHP从淘宝采集评论和成交数据发布时间:2022-07-10
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap