zendStudio安装Xdebug项目断点调试

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

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

复制代码

[XDebug]
xdebug.profiler_append = 1xdebug.profiler_enable = 1xdebug.profiler_enable_trigger = 1xdebug.profiler_output_dir ="D:\xdebug"xdebug.trace_output_dir ="D:\xdebug"xdebug.profiler_output_name = "cachegrind.out.%t-%s"xdebug.remote_enable = 1xdebug.remote_handler = "dbgp"xdebug.remote_host = "localhost"xdebug.remote_port = 9001zend_extension="C:\php\php53\ext\xdebug.dll"

复制代码

配置注意:xdebug.profiler_output_dir和xdebug.trace_output_dir,必须要设置存在的目录不然调试不通过
完成以上两步后重启apache服务器 通过phpinfo()查看php信息:ok安装成功下一步就是在zendStudio首选项设置对应的调试服务器参数


一个人静静坐在电脑面前写代码的感觉,那是什么感觉?那是武林高手闭关修炼的感觉。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章