Xdebug not working in MAMP

I have MAMP installed with PHP 5.5.3 installed.

The end of my php.ini file (MAMP / conf / php5.5.3 / php.ini) is as follows:

[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" 

However, xdebug does not work when testing with var_dump ().

What else can I try?

EDIT: I restarted MAMP every time I tried to change something. I also checked phpinfo (). He says here that I need to edit the file from MAMP, not from the crawler. But I can not find where MAMP allows me to go to the file ...

+6
php xdebug mamp
Dec 23 '13 at 15:04
source share
4 answers

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.

Now I feel so stupid. :)

Thank you all for your help.

+12
Dec 23 '13 at 15:30
source share

For people like me, copying and pasting php.ini settings from / SO blogs for xdebug without proper reading, my problem was the way

 extensions/no-debug-non-zts-20151012 

Please check the extension path on your computer and update accordingly.

+1
May 01 '17 at 16:13
source share

After installing php.ini, a checkbox will appear in the php MAMP panel that says "activate xdebug". Check this.

0
Nov 22 '16 at 17:52
source share

The danger with new mamp downloads, which comes with php versions 7.3, and xdebug is not yet supported, as we can see here.

https://www.mamp.info/en/release-notes/mac/

for it to work, you need to download the latest version of PHP version 7.2.14:

1- rename all other php options to Applications / MAMP / bin / php, for example "_" php5.4.45 ', but not in version 7.2.14, which will force mamp to use this version.

2- At the bottom of the INI file in Applications / MAMP / bin / php / php7.2.14 / conf / php.ini, delete ';' in the xdebugg line.

3- Restart Mamp

4- Enjoy.

0
May 25 '19 at 1:09
source share



All Articles