【图文教程】Eclipse for PHP+XAMPP调试配置

一、下载安装XAMPP

下载地址:https://www.apachefriends.org/download.html,

一路“Next”,安装完毕。

二、下载Eclipse for PHP

下载地址:https://sourceforge.net/projects/phpeclipse/

直接解压。

三、配置Eclipse for PHP

四、创建PHP工程

1.在PHP Explorer空白处右键->New->Other...

 2.在工程上右键->New->Other...

编写如下代码:

<?php
phpinfo();
?>

五、配置XAMPP

1.配置虚拟目录:

在配置文件添加:

    Alias /test "D:/PHP/test"
    <Directory "D:/PHP/test">
        AllowOverride AuthConfig
        Require local
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
    </Directory>

2.配置XDebug

在配置文件添加:

zend_extension="E:/xampp/php/ext/php_xdebug.dll"
[Xdebug]
xdebug.auto_trace = On
xdebug.show_exception_trace = On
xdebug.remote_autostart = On
xdebug.remote_enable = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On
xdebug.trace_output_dir="D:/xDebugLog"
xdebug.profiler_output_dir="D:/xDebugLog"
xdebug.profiler_enable=On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp

3.启动Apache

六、访问页面就可以调试了。

 

转载于:https://www.cnblogs.com/heihaozi/p/php_debug.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值