zendStudio安装Xdebug项目断点调试

1,首先安装xdebug插件 传送门

2,配置php.ini文件如下:

[XDebug]
xdebug.profiler_append = 1
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir ="D:xdebug"
xdebug.trace_output_dir ="D:xdebug"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9001
zend_extension="C:phpphp53extxdebug.dll"
配置注意:xdebug.profiler_output_dir和xdebug.trace_output_dir,必须要设置存在的目录不然调试不通过
完成以上两步后重启apache服务器 通过phpinfo()查看php信息:ok安装成功下一步就是在zendStudio首选项设置对应的调试服务器参数


原文地址:https://www.cnblogs.com/bieanju/p/5830859.html