Skip to content

Instantly share code, notes, and snippets.

@alexalouit
Created August 23, 2022 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexalouit/4480527af160c1369b8d68cec313edfa to your computer and use it in GitHub Desktop.
Save alexalouit/4480527af160c1369b8d68cec313edfa to your computer and use it in GitHub Desktop.
Apple M1 + macOS 10.11: Xdebug for PHP
$ cd /usr/local/etc/php
$ git clone https://github.com/xdebug/xdebug.git
$ cd xdebug
$ arch -x86_64 phpize
$ arch -x86_64 ./configure --enable-xdebug
$ arch -x86_64 sudo make
$ arch -x86_64 sudo make install
$ echo 'zend_extension = "/usr/local/lib/php/pecl/20210902/xdebug.so"' >> /usr/local/etc/php/8.1/php.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment