PhpED中结合Dbg调试
1Apache/php的配置参见“PHP实战记录系列之一”
2Dbg调试和Zend Debugger调试不能同时执行,即php.ini中不能同时启用,切换Zend StudioPhpED开发工具是,必须切换相应的debugger配置。

安装

复制d:\Program Files\NuSphere\PhpED\debugger\server\Windows\x86\dbg-php-5.2.dlld:/myamp/PHP5.2.9/ext/dbg-php-5.2.dll

配置php.ini

在末尾增加如下配置
;配置php debugger for PhpED
extension=dbg-php-5.2.dll
[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=127.0.0.1
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16

测试安装

在浏览器中输入[url]http://localhost/phpinfo.php[/url],找到下图内容即表明安装成功。
[搭建开发环境]在PhpED中结合Dbg调试_调试
[搭建开发环境]在PhpED中结合Dbg调试_新手_02

如何调试

启动zend studio后,在调试的位置添加断点,在ie中按下“Zend Studio”调试工具按钮“Debug”,即可以进行调试。
 [搭建开发环境]在PhpED中结合Dbg调试_入门_03