我一直在尝试使用基于PHP的应用程序调试问题,这对于简单的vardump来说太复杂了,所以我想在我的系统上正确配置XDebug . 我在OSX上使用MAMP . 我已经浏览了XDebug网站上的向导,并按照提供的步骤进行操作,但出于某种原因,我无法让XDebug显示在我的phpinfo中 . 我唯一注意到的是phpize返回
PHP Api版本:20090626
Zend Extension Api No:220090626
我相信我的本地PHP5.3版本,向导说我应该得到
Zend Module Api No:20121212
Zend Extension Api No:220121212
哪个是MAMP使用的版本,PHP5.5
Edit: I've put the following in php.ini
[Xdebug的]
的zend_extension = “/应用程序/ MAMP /斌/ PHP / php5.5.10 / lib中/ PHP /分机/无调试非ZTS-20121212 / xdebug.so”
xdebug.remote_enable = 1
xdebug.remote_host =本地主机
xdebug.remote_port = 9000
xdebug.remote_handler = dbgp
xdebug.remote_autostart = 1
有关如何正确设置的任何建议?我已经看了几天了,它让我发疯了 .
2 回答
Below is valid if your extension compiled and installed properly.
从来没有使用过MAMP,但在安装pecl之后有类似的问题(Ubuntu)它不会添加xdebug作为扩展
在
php.ini
或/path/to/php/conf.d/xdebug.ini
(Ubuntu上的/etc/php5/conf.d/20-xdebug.ini
))确保它有
通常它有:
你没有安装Xdebug .
如果你使用php53,Pecl将无法帮助你 .
PHP.ini更改没有帮助 .
您可能安装了错误版本的Xdebug . 它们对于不同的php版本是不同的 .
MacPorts只有你的版本,请在这里查看:
https://www.macports.org/ports.php?by=name&substr=php53-xdebug