使用Zend Studio和火狐调试PHP代码

来源:互联网 发布:手机淘宝怎么修改评语 编辑:程序博客网 时间:2024/05/18 02:25

php的断点调试利器:Zend Studio Browser Toolbars

下载地址:

http://www.zend.com/en/products/studio/downloads

在该页面需要下载Studio Web Debugger以及支持ie和火狐的插件

Studio Web Debugger为php的扩展,压缩包中的内容如下图:

跟据你的php版本,解压出不同的ZendDebugger.dll文件,放置在php的extension_dir(扩展目录中),对于php5.3只支持到nts版了,而5.3ts则不能使用了。

然后在php.ini文件中增加下面的内容

zend_extension_ts=E:/php/ext/ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always

安装好火狐的插件后,会看到下面这样的图标

选择Extra Stuff->Settings,设置正确的ZendStudio路径在Zend Studio Executable后的输入框中

最后重启Apache服务,开启你的Zend,浏览你本地的php页面时就可以使用Debug按钮来调试你的程序了

转自:http://www.guoxk.com/node/zend-studio-firebug-debug-php

原创粉丝点击