【问题标题】:I can't get xdebug working我无法让 xdebug 工作
【发布时间】:2023-03-24 05:08:01
【问题描述】:

我的系统:

-windows 7 
- php 5.5.9
- stack:  xampp(32bit)

xdebug 版本:PHP 5.5 VC9(32 位)来自http://xdebug.org/download.php

还有我的 php.ini:

[XDebug]
zend_extension="php_xdebug-2.3.1-5.5-vc9-nts.dll"
xdebug.remote_handler = dbgp
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_host = 127.0.0.1
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"

我的php安装在:C:\xampp\php\ext

【问题讨论】:

    标签: php windows xampp xdebug


    【解决方案1】:

    我有一个非常相似的设置,这对我有用:

    [XDebug]
    zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
    xdebug.profiler_append = 0
    xdebug.profiler_enable = 0
    xdebug.profiler_enable_trigger = 1
    xdebug.profiler_output_dir = "C:\xampp\tmp"
    xdebug.profiler_output_name = "cachegrind.out.%t-%s"
    xdebug.remote_enable = 1
    xdebug.remote_handler = "dbgp"
    xdebug.remote_host = "127.0.0.1"
    xdebug.remote_port = 9000
    xdebug.remote_mode = "req"
    xdebug.trace_output_dir = "C:\xampp\tmp"
    xdebug.remote_log = "C:\xampp\php\logs\xdebug_log"
    xdebug.max_nesting_level = 1000
    

    【讨论】:

    • 为我工作,我不担心我错过了什么,但一定有什么! :)
    【解决方案2】:

    在那之后,我还不得不挣扎 2 天...... 我的配置是 -

    [xdebug]
    zend_extension = C:\Program Files\PHP54\ext\php_xdebug-2.3.1-5.4-vc9.dll
    xdebug.idekey = netbeans-xdebug
    xdebug.remote_enable=on
    xdebug.remote_handler=dbgp
    xdebug.remote_host=localhost
    xdebug.remote_port=9000
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-09-03
      • 2019-12-30
      • 2013-04-12
      • 2013-07-07
      • 2016-09-02
      • 2015-05-20
      • 2015-10-22
      相关资源
      最近更新 更多