Xdebug在MAMP中不起作用 [英] Xdebug doesn't work in MAMP

查看:96
本文介绍了Xdebug在MAMP中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了装有PHP 5.5.3的MAMP.

I have MAMP with PHP 5.5.3 installed.

我的php.ini文件(MAMP/conf/php5.5.3/php.ini)的结尾是这样:

The ending of my php.ini file (MAMP/conf/php5.5.3/php.ini) is this:

[OPcache]
zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/opcache.so"
  opcache.memory_consumption=128
  opcache.interned_strings_buffer=8
  opcache.max_accelerated_files=4000
  opcache.revalidate_freq=60
  opcache.fast_shutdown=1
  opcache.enable_cli=1

[xdebug]
xdebug.default_enable=1

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1

zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so"

不过,在使用var_dump()测试时,xdebug无法正常工作.

Still, xdebug doesn't work when testing with a var_dump().

我还能尝试什么?

每次尝试更改某些内容时,我都会重新启动MAMP. 我还检查了phpinfo(). 它说此处,我需要从MAMP而不是从MAMP编辑文件发现者.但是我找不到MAMP在哪里允许我转到文件...

I have restarted MAMP every time I tried changing something. I also checked phpinfo(). It says here that I need to edit the file from MAMP, not from the finder. But I can't find where MAMP lets me go to the file...

推荐答案

显然,我在编辑错误的php.ini文件... 正确的php.ini是MAMP/bin/php/php5.5.3/conf/php.ini,而不是MAMP/conf/php5.5.3/php.ini.

Apparently, I was editing the wrong php.ini file... The correct php.ini is MAMP/bin/php/php5.5.3/conf/php.ini instead of MAMP/conf/php5.5.3/php.ini.

我现在真傻. :)

每个人都感谢您的帮助.

Everyone thanks for helping.

这篇关于Xdebug在MAMP中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆