zoukankan      html  css  js  c++  java
  • 使用Eclipse调试PHP程序

    我安装的是PHP Version 5.3.26,按照网上提示在Eclipse中使用XDebug进行调试,不过配置了却使用不了,下面把解决方法简要说一下。

    XDebug老是加载不了

    From PHP 5.3 onwards, you always need to use the zend_extension PHP.ini setting name, and not zend_extension_ts, nor zend_extension_debug. However, your compile options (ZTS/normal build; debug/non-debug) still need to match with what PHP is using.

    Php.ini中的配置

    ;debug configuration

    zend_extension="D:/servers/php-5.3.8/ext/php_xdebug-2.1.3-5.3-vc9.dll"

    ;xdebug配置

    [Xdebug] 

    xdebug.remote_enable=1

    xdebug.remote_host=127.0.0.1

    xdebug.remote_port=9000 

    xdebug.remote_handler=dbgp

    xdebug.auto_trace = On

    xdebug.show_exception_trace = On

    xdebug.remote_autostart = On

    xdebug.collect_vars = On

    xdebug.collect_return = On

    xdebug.collect_params = On

    Eclipse配置

    在eclipse的项目里的Properties里面找到"PHP Debug",在PHP Debugger里面选择"XDebug"

    再配置一下:

    再在Windows->Preferences里面配置下PHP Servers

  • 相关阅读:
    原码、反码、补码详解
    进制转换
    目录
    Window【目录】
    排序算法——冒泡排序
    算法的时间复杂度与空间复杂度
    排序算法
    递归—八皇后问题
    递归—迷宫问题
    递归
  • 原文地址:https://www.cnblogs.com/zhoujg/p/3459870.html
Copyright © 2011-2022 走看看