eclipse php 开发环境搭建记录

来源:互联网 发布:10.2越狱后抹掉数据 编辑:程序博客网 时间:2024/06/05 06:30

一、下载eclipse的php 开发插件  php,apache ,xdebug, firefox安装xdebug easy 插件


二、在php.ini里配置xdebug

zend_extension="C:/xampp/php/php_xdebug-2.3.3-5.6-vc11.dll"   //zend_extension_ts
xdebug.remote_enable=On
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"


apache 中配置httpd.conf

DocumentRoot "G:/projs/temp/1/workspace_4.4"
<Directory "G:/projs/temp/1/workspace_4.4">

</Directory>

<IfModule dir_module>
    DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
                   default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
                   home.php home.pl home.cgi home.asp home.shtml home.html home.htm
                   
                   Alias /destoon "G:/projs/temp/1/workspace_4.4/destoon"
    <Directory G:/projs/temp/1/workspace_4.4/destoon>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
    </Directory>
</IfModule>

三、启动apache   在eclipse里打断点即可以调试运行了

0 0
原创粉丝点击