Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xdebug doesn't work in MAMP

Tags:

php

xdebug

mamp

I have MAMP with PHP 5.5.3 installed.

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"

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

What else can I try?

EDIT: 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...

like image 609
Bakkie009 Avatar asked Dec 23 '13 15:12

Bakkie009


Video Answer


1 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.

I feel so stupid now. :)

Everyone thanks for helping.

like image 120
Bakkie009 Avatar answered Oct 09 '22 10:10

Bakkie009