Heim  >  Artikel  >  Backend-Entwicklung  >  php eclipse xdebug 开发环境筹建

php eclipse xdebug 开发环境筹建

WBOY
WBOYOriginal
2016-06-13 13:10:41791Durchsuche

php eclipse xdebug 开发环境搭建

1. 下载jdk

2. 下载 eclipse-php-helios-SR2-win32-x86_64.zip

3. 下载php5.3

4. 下载xdebug

5. 下载apache2

6. 配置php.ini

加入下面一段

;载入Xdebug
zend_extension="D:/php-5.3.16-Win32-VC9-x86/ext/php_xdebug-2.2.1-5.3-vc9.dll"

;xdebug配置
[Xdebug]
;开启自动跟踪
xdebug.auto_trace = On
;开启异常跟踪
xdebug.show_exception_trace = On
;开启远程调试自动启动
xdebug.remote_autostart = On
;开启远程调试
xdebug.remote_enable = true
;收集变量
xdebug.collect_vars = On
;收集返回值
xdebug.collect_return = On
;收集参数
xdebug.collect_params = On

7 配置apache

LoadModule php5_module "D:/php-5.3.16-Win32-VC9-x86/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "D:/php-5.3.2-Win32-VC9-x86"
?

8 根目录改为工作空间或者添加虚拟目录

#DocumentRoot "D:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
DocumentRoot "E:/workspace/php/demo"

?或配置

#虚拟目录节点
<IfModule dir_module>
    #设置欢迎界面
    DirectoryIndex index.php index.html index.htm
    Alias  /php  "E:/workspace/php/demo"
    #"/php"是虚拟路径,"E:/workspace/php/demo" 是你项目存放的物理路径;
    <Directory "E:/workspace/php/demo">
        #访问权限设置
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>

?

至此。

?

?

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn