现在的位置: 首页 > 综合 > 正文

ZendStudio for Eclipse 6.0 之安装调试

2013年10月20日 ⁄ 综合 ⁄ 共 969字 ⁄ 字号 评论关闭

环境说明:
IDE - Zend Studio For Eclipse6.0
WEB Server -IIS6.0+PHP5.2.8

1.安装Zend Studio For Eclipse6.0
 下载安装文件,运行.exe文件即可。

2.安装ZendDebugger
 2.1下载官方软件:
        http://downloads.zend.com/pdt/server-debugger/ZendDebugger-5.2.14-cygwin_nt-i386.zip
 2.2解压
  
  将dummy.php文件复制到IIS站点的根目录中。
  解压后,参看readme.txt文件,打开5_2_x_comp文件,将ZendDebugger.dll复制到PHP扩展库目录${php_home}/ext。
  在C:/WINDOWS/php.ini里加入
  [Zend]
  zend_extension_ts=${php_home}/ext/ZendDebugger.dll
  zend_debugger.allow_hosts=127.0.0.1
  zend_debugger.expose_remotely=always

 2.3重启IIS
3.调试页面
 3.1启动Zend Studio For Eclipse,并新建一个工程
  工作目录选择IIS站点根目录。
 3.2在新建工程中加入php页面
 3.3调试新加入的php页面-见下图

ZendStudio for Eclipse 6.0 之安装调试 - 风过无痕 - 我的博客ZendStudio for Eclipse 6.0 之安装调试 - 风过无痕 - 我的博客ZendStudio for Eclipse 6.0 之安装调试 - 风过无痕 - 我的博客ZendStudio for Eclipse 6.0 之安装调试 - 风过无痕 - 我的博客

 

 

调试注意事项
PHP的断点调试要借助在浏览器安装Zend Studio Toolbar和在PHP中安装配置Zend Debugger插件,调试由点击浏览器的Zend Studio Toolbar的Debug项触发。

1. 选中“Current page”时,代表调试当前页,即浏览器URL所代表的当前页,假设当前URL为phpBB的某个URL。
2. “Next page”代表从当前页触发的请求将进入调试状态。
3. “All forms (POST) on this site”所有表单请求将进入调试状态。
4. “All page on this site”所有页面将进入调试状态

当Zend Studio进入调试状态时,首选会在页面首行处停下来,即便首行没有断点,所以如果要进入用户自己设置的断点,还得按一次Zend Studio for Eclipse的Debug窗口的Rusume按钮。

抱歉!评论已关闭.