Zend Studio 如何配置本地apache服务器使用xdebug调试php脚本
生活随笔
收集整理的這篇文章主要介紹了
Zend Studio 如何配置本地apache服务器使用xdebug调试php脚本
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
本地環境搭配: apache 2.2 安裝位置:D:/program files/Apache Software Foundation/Apache2.2 php 5.2.10 安裝位置:C:/php xdebug已經安裝并配置好 zend studio 安裝位置:D:/program files/Zend/Zend Studio - 7.0.0 zend studio 默認workbench安裝位置:C:/Users/Fred/Zend/workspaces/DefaultWorkspace7 配置apache,修改httpd.conf文件,在文件的最后添加: Alias /Workspace "C:/Users/Fred/Zend/workspaces/DefaultWorkspace7"
<Directory "C:/Users/Fred/Zend/workspaces/DefaultWorkspace7">
Options Indexes MultiViews ExecCGI
DirectoryIndex index.php
AllowOverride None
Order allow,deny
Allow from all
</Directory> /Workspace這個名字隨你喜歡改變 C:/Users/Fred/Zend/workspaces/DefaultWorkspace7這個和你的zend studio默認的workbench位置相對應 接下來配置zend studio。打開zend studio => Window => Preferences => PHP PHP Executables => Add,如下所示設置(name可以隨便起名字,但是之后的debug設置里面必須和這個name對應): PHP Servers => New,如下所示設置: 注意URL欄中添加了Workspace,這個是在httpd.conf中添加的目錄別名。 PHP Debug,如下圖所示,選擇合適的Debugger,Server:
<Directory "C:/Users/Fred/Zend/workspaces/DefaultWorkspace7">
Options Indexes MultiViews ExecCGI
DirectoryIndex index.php
AllowOverride None
Order allow,deny
Allow from all
</Directory> /Workspace這個名字隨你喜歡改變 C:/Users/Fred/Zend/workspaces/DefaultWorkspace7這個和你的zend studio默認的workbench位置相對應 接下來配置zend studio。打開zend studio => Window => Preferences => PHP PHP Executables => Add,如下所示設置(name可以隨便起名字,但是之后的debug設置里面必須和這個name對應): PHP Servers => New,如下所示設置: 注意URL欄中添加了Workspace,這個是在httpd.conf中添加的目錄別名。 PHP Debug,如下圖所示,選擇合適的Debugger,Server:
總結
以上是生活随笔為你收集整理的Zend Studio 如何配置本地apache服务器使用xdebug调试php脚本的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: django 三天写个人博客
- 下一篇: 回归(regression)与分类(cl