Xdebug issue with MAMP 7.4

Keywords: LAMP/MAMP/WAMP - OS X - Technical issue - Other
bnsupport ID: d80d11a6-97da-745b-cb82-c66d8a0f1d96
I can’t seem to get xdebug to work with vscode.
Xdebug configuration looks correct in phpinfo but cannot stop execution at a breakpoint.

the attached table indicates the compatible versions between php and xdebug.

However php7.4 and Xdebug 2.8 (present in MAMP7.4.16 rev2) are incompatible according to xdebug.org.

How to update xdebug in the stack?

Thank you for your help

Hi @LeoC,

Thank you so much for reporting this issue with the Bitnami MAMP solution. I just created an internal task and notified the team to work on it as soon as possible. I understand this change should be ready during the following weeks.

Unfortunately, there is not an easy way to compile the new version of xdebug and recompile the PHP binaries with that new version. You will need to wait for the Bitnami team to release a new version of the solution with a compatible version of xdebug. However, you can use the Bitnami LAMP Virtual Machine that includes PHP and Xdebug 3.x to start working on your project


Sorry for the inconvenience

Hello @LeoC,

The new installer for Bitnami MAMP Stack (7.4.16-3) includes Xdebug 2.9.8.


Hello @davidg, @jota,

Great, thank you!
I download this new version immediately.

In addition, I took advantage of the past week by installing and studying docker.
I’m not a specialist yet … so: have you added xdebug to your php container? Nothing indicates that.
If not, could you tell me how to do it with a docker-compose file?

Have a good day,

Hi @LeoC,

Yes, xdebug 3.x is included in the Bitnami container

root@c54b3ed53566:/app# ls -la /opt/bitnami/php/lib/php/extensions/xdebug.so
-rwxr-xr-x 1 1001 1001 451904 Apr 29 17:28 /opt/bitnami/php/lib/php/extensions/xdebug.so

You simply need to enable it in the /opt/bitnami/php/etc/php.ini file and run the php -m command

root@c54b3ed53566:/app# php -m
[PHP Modules]

[Zend Modules]
Zend OPcache

Happy to help!

Was my answer helpful? Click on :heart: