Xdebug and Eclipse

Environment
    apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi
    php-5.1.2-Win32.zip
     php_xdebug-2.0.3-5.1.7.dll
    php-5.2.6-Win32.zip
      php_xdebug-2.0.3-5.2.5.dll
    Mysql 5.0.51a-community-nt
    Eclipse 3.3.2
    
httpd.conf
    SetEnv PHPRC "D:/dev/php-5.1.2-Win32"
    ScriptAlias /php/ "D:/dev/php-5.1.2-Win32/"
    Action application/x-httpd-php  "/php/php-cgi.exe"

php.ini
    Put the extension into the dir
    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = "./ext/"

    [Xdebug]
    zend_extension_ts="D:/dev/php-5.1.2-Win32/ext/php_xdebug-2.0.3-5.1.7.dll"
    xdebug.profiler_enable=on
    xdebug.trace_output_dir="D:/dev/log"
    xdebug.profiler_output_dir="D:/dev/log"
    Enable other extensions, Restart , see phpinfo();
    
Display Features & Stack Traces
    Add following code into ACLController.php
    var_dump($_SERVER);
    require_once('kkk.php');
     See the results

    Add this setting to httpd.conf:
    xdebug.collect_params=2
    Restart, See the results

Function stack & Function Traces
    xdebug.remote_enable=1
    xdebug.remote_handler=dbgp
    xdebug.remote_mode=req
    xdebug.idekey=default
    xdebug.remote_host="localhost"
    xdebug.remote_port=9000

eclipse
    Windows → Preference → PHP → Debug → PHP Debugger: Xdebug
    Setting one PHP Web Page debug
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值