ZendStudio调试php脚本环境安装布置(备忘)

来源:互联网 发布:手机淘宝怎么提交改价 编辑:程序博客网 时间:2024/04/27 01:49

1. 安装zendstudio

2. 安装xampp(绿色版的xampp需要先运行文件夹内的xampp_setup.bat)

3. 配置xampp/php/php.ini, 打开xdebug插件, 按如下配置

<span style="font-size:14px;">[XDebug]zend_extension = "D:\xampp\php\ext\php_xdebug.dll";xdebug.profiler_append = 0;xdebug.profiler_enable = 1;xdebug.profiler_enable_trigger = 0;xdebug.profiler_output_dir = "D:\xampp\tmp";xdebug.profiler_output_name = "cachegrind.out.%t-%s"xdebug.remote_enable = 1xdebug.remote_handler = "dbgp"xdebug.remote_host = "localhost";xdebug.trace_output_dir = "D:\xampp\tmp"</span>

4.配置zendstudio中php调试部分, 添加一个GenericServer(调试器要选xdebug)



5.选中项目,设置properties->php->debug, 将其中的server设置为刚才添加的server即可。

0 0
原创粉丝点击