php xdebug 配置详解,PHP Xdebug调试配置

Xdebug 下载:https://xdebug.org/download.php php.ini ; 文件添加,注意路径   zend_extension = C:\php7\ext\php_xdebug-2.5.3-7.1-vc14-nts-x86_64.dll [Xdebug] xdebug.profiler_enable=on xdebug.trace_output_dir=”c:\php7\xdebug-log” ;xdebug 的数据文件目录 xdebug.profiler_output_dir=”c:\php7\xdebug-log” ;xdebug 的数据文件目录 xdebug.auto_trace = On ;开启自动跟踪 xdebug.show_exception_trace = On ;开启异常跟踪 xdebug.remote_autostart = Off ;开启远程调试自动启动 xdebug.remote_enable = On ;开启远程调试 xdebug.remote_handler=dbgp ;用于zend studio远程调试的应用层通信协议 xdebug.remote_host=127.0.0.1 ;允许连接的zend studio的IP地址 xdebug.remote_port=9000 ;反向连接zend studio使用的端口 xdebug.collect_vars = On ;收集变量 xdebug.collect_return = On ;收集返回值 xdebug.collect_params = On ;收集参数 xdebugbug.max_nesting_level = 10000 ;如果设得太小,函数中有递归调用自身次数太多时会报超过最大嵌套数错

Chrome浏览器安装插件 Xdebug helper

022e27bfe85dfded8dca2bba0e85b390.png

设置Sublime text3 注意需安装packet control

Manual

If for some reason the console installation instructions do not work for you (such as having a proxy on your network), perform the following steps to manually install Package Control:

Click the Preferences > Browse Packages… menu

Browse up a folder and then into the Installed Packages/ folder

Download Installed Packages/ directory

Restart Sublime Text

68b5f21743b1b8986a4a8f5d4be98e70.png

ee8338c3041d8bf4c2453aef9a338865.png搜索Xdebug Client安装 安装完毕后打开谷歌浏览器Xdebug Helper插件的

fd67a62070745fb3f6d86b107723d562.png 然后打开Sublime菜单  工具→Xdebug→Start Debugging  打开网页即可调试

ded32e0d29395a2668f242a25f40b27b.png

PHP调试超时解决方法,调整

e7683b2b1b8293b1bfa905bce3f0050f.png

8d5123b69cb2b6743208a3bd939ae993.png

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值