Created
August 23, 2022 12:01
-
-
Save alexalouit/4480527af160c1369b8d68cec313edfa to your computer and use it in GitHub Desktop.
Apple M1 + macOS 10.11: Xdebug for PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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