phpstorm 配置xdebug

##1.php环境配置 安装xdebug扩展,然后在php.ini中配置:

zend_extension              = xdebug.so
;允许远程IDE调试
xdebug.remote_enable        = true
;远程主机
xdebug.remote_host          = 127.0.0.1   ;//  ide所在电脑的ip
;xdebug.remote_port         = 9000 ;//ide所在电脑的端口 默认为9000
xdebug.idekey = PHPSTORM

xdebug.profiler_enable      = on
;临时跟踪信息输出
xdebug.trace_output_dir     = "D:\ApacheServer\xdebug\trace"
xdebug.profiler_output_dir  = "D:\ApacheServer\xdebug\profiler"

;其余参数
;开启自动跟踪。自动打开"监测函数调用过程"的功模。该功能可以在你指定的目录中将函数调用的监测信息以文件的形式输出
xdebug.auto_trace           = On
;开启异常跟踪
xdebug.show_exception_trace = On
;开启远程调试自动启动
xdebug.remote_autostart     = On
;收集变量
xdebug.collect_vars         = On
;收集返回值
xdebug.collect_return       = On
;收集参数
xdebug.collect_params       = On
;显示局部变量
xdebug.show_local_vars      = On
;显示默认的错误信息
xdebug.default_enable       = On
;用于zend studio远程调试的应用层通信协议
xdebug.remote_handler       = dbgp
;如果设得太小,函数中有递归调用自身次数太多时会报超过最大嵌套数错
xdebug.max_nesting_level    = 10000

##2.ide配置

##3.谷歌浏览器安装xdebug插件

Paste_Image.png

最后在 ide中点击1变成绿色监听状态,在点击2进行调试

参考自:

  1. http://www.cnblogs.com/dreamhome/p/3218744.html
  2. http://www.jb51.net/article/58069.htm

转载于:https://my.oschina.net/moresir/blog/861754

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值