【问题标题】:Xdebug installed on Mac Native apacheXdebug 安装在 Mac Native apache 上
【发布时间】:2014-01-28 04:01:49
【问题描述】:

我正在尝试启动 XDEBUG,但无法显示 cookie。下面是放在我的 php.ini 文件中的内容。我重新启动了apache。我做了一个 phpinfo() 调用,我确实看到启用了 xdebug 并设置了设置。但是当我执行localhost/?XDEBUG_SESSION_START=1 时,我希望在我的浏览器中看到 Cookie 设置为 1 对吗?

zend_extension ="/usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
xdebug.remote_enable=1
xdebug.profiler_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.profiler_output_dir="/tmp"

当我运行 php -m 时,我没有看到它,但我在 phpinfo 中看到了它

【问题讨论】:

    标签: php apache debugging xdebug


    【解决方案1】:

    无法确定确切的答案,但我从 repo 下载了 php.ini.default 文件并在 php ini 中设置以下内容

    zend_extension ="/usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
    xdebug.remote_enable=On
    xdebug.remote_host=localhost
    xdebug.idekey=foo
    xdebug.profiler_enable=On
    

    它奏效了。可能是因为远程主机。谁知道。有效。这是 mac 的最低配置,如果你在 mac 上安装 xdebug 的以下安装

    http://kubyshkin.ru/posts/installing-php-xdebug-extension-on-mac-os-x-10-7-lion.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-25
      • 2014-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-27
      • 2012-09-24
      相关资源
      最近更新 更多