Xdebug安装在Mac Native apache上

时间:2014-01-28 04:01:49

标签: php apache debugging xdebug

我正在努力让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

中看到了它

1 个答案:

答案 0 :(得分:0)

无法确定答案,但我从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