Php 安装在Mac原生apache上的Xdebug

Php 安装在Mac原生apache上的Xdebug,php,apache,debugging,xdebug,Php,Apache,Debugging,Xdebug,我正试图让XDEBUG启动并运行,但却无法让cookie显示出来。下面是我的php.ini文件中的内容。我重新启动了apache。我做了一个phpinfo()调用,我确实看到启用了xdebug并设置了设置。但是当我执行localhost/?XDEBUG\u SESSION\u START=1时,我希望在浏览器中看到一个Cookie设置为1,对吗 zend_extension ="/usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so

我正试图让XDEBUG启动并运行,但却无法让cookie显示出来。下面是我的php.ini文件中的内容。我重新启动了apache。我做了一个phpinfo()调用,我确实看到启用了xdebug并设置了设置。但是当我执行
localhost/?XDEBUG\u SESSION\u 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中看到了它。我想不出确切的答案,但我从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,那么这就是最基本的配置