首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

PHP开发调试环境配备-windows + zend studio + ApmServ + zend debugger

2013-02-19 
PHP开发调试环境配置-windows + zend studio + ApmServ + zend debugger  PHP开发调试环境配置-windowszen

PHP开发调试环境配置-windows + zend studio + ApmServ + zend debugger

  PHP开发调试环境配置-windows + zend studio + ApmServ + zend debugger

  准备材料:

  ZendStudio-9.0.4:http://www.geekso.com/ZendStudio9-key (破解版本)

  ApmServ:http://apmserv.s135.com/

  zend debugger:http://ishare.iask.sina.com.cn/f/11686597.html

  操作步骤:

  1、将ZendStudio的工作目录指向ApmServ的web目录。本文以D:\APMServ5.2.6\www\htdocs为例说明。

  2,ZendDebugger.dll复制到php.exe同目录下,dummy.php文件复制到web目录,即D:\APMServ5.2.6\www\htdocs目录。

  3,配置zend debugger到php.ini文件:

  添加如下:

  zend_extension_ts=D:/APMServ5.2.6/PHP/ZendDebugger.dll

  zend_debugger.allow_hosts=127.0.0.1:6543/PHPTest (这里是因为在D:\APMServ5.2.6\www\htdocs目录中新建了项目文件夹PHPTest)

  zend_debugger.expose_remotely=always

  4、重启Apache,新建一个php文件,输入phpinfo()函数,浏览器打开,出现如下的Zend Debugger模块,即为配置成功:

PHP开发调试环境配备-windows + zend studio + ApmServ + zend debugger

  5、关联到zend studio

  打开preferrence-->php部分,做好php executables和Debug部分的配置。参考如下(注意图中的目录路径):

PHP开发调试环境配备-windows + zend studio + ApmServ + zend debugger

PHP开发调试环境配备-windows + zend studio + ApmServ + zend debugger

  成功调试图:

PHP开发调试环境配备-windows + zend studio + ApmServ + zend debugger

热点排行