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

设置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:

  1. Click the Preferences > Browse Packages… menu
  2. Browse up a folder and then into the Installed Packages/ folder
  3. Download Package Control.sublime-package and copy it into the Installed Packages/ directory
  4. Restart Sublime Text

搜索Xdebug Client安装 安装完毕后打开谷歌浏览器Xdebug Helper插件的 然后打开Sublime菜单  工具→Xdebug→Start Debugging  打开网页即可调试

附Chorme插件:20170606172652

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

 

 

显示更多

发表评论