Home > Backend Development > PHP Tutorial > php eclipse xdebug 开发环境筹建

php eclipse xdebug 开发环境筹建

WBOY
Release: 2016-06-13 10:52:11
Original
1037 people have browsed it

php eclipse xdebug 开发环境搭建

1. 下载jdk

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

3. 下载php5.3

4. 下载xdebug

5. 下载apache2

6. 配置php.ini

加入下面一段

;载入Xdebugzend_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
Copy after login

7 配置apache

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

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

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

?或配置

#虚拟目录节点<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>
Copy after login

?

至此。

?

?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template