这篇文章主要介绍了关于Hbuilder配置php断点调试,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下
首先到xdebug官网下载和你的php版本一致的xdebug扩展,我的是php-5.4.29-Win32-VC9-x86,所以下载的是php_xdebug-2.4.0rc3-5.4-vc9.dll
把php_xdebug-2.4.0rc3-5.4-vc9.dll复制到php的目录下,我是复制到 H:\phpStudy\php\php_xdebug-2.4.0rc3-5.4-vc9.dll(用的phpstudy集成环境)
修改php.ini配置如下,我关闭了部分保存分析文件的配置,这样对网站速度影响小一些。。[Xdebug];你的xdebug文件路径,不要有空格和中文名之类的就不用再多说了。。zend_extension=H:/phpStudy/php/php_xdebug-2.4.0rc3-5.4-vc9.dll;开启自动跟踪xdebug.auto_trace = Off;开启异常跟踪xdebug.show_exception_trace = Off;开启远程调试自动启动xdebug.remote_autostart = On;开启远程调试xdebug.remote_enable = On;收集变量xdebug.collect_vars = Off;收集返回值xdebug.collect_return = Off;收集参数xdebug.collect_params = Off
xdebug.trace_output_dir="H:/phpStudy/php/Projecs"xdebug.profiler_enable=Off
xdebug.profiler_output_dir="H:/phpStudy/php/Projecs"xdebug.remote_host