



With Zend OPcache v8.0.17, Copyright (c), by Zend Technologies That's it With Xdebug v3.1.3, Copyright (c) 2002-2022, by Derick Rethans Zend Engine v4.0.17, Copyright (c) Zend Technologies You should see the output like this one: PHP 8.0.17 (cli) (built: 09:45:09) (NTS) Zend_extension=/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20210902/xdebug.so Open php.ini of your XAMPP distribution at /Applications/XAMPP/xamppfiles/etc/php.ini and add the following lines to the bottom of the file: This will install Xdebug extension to XAMPP PHP extension folder: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20210902/xdebug.so 6. Or if PHP was compiled for x86_64 architecture, run this command: arch -x86_64 sudo pecl install xdebug Then if it's arm64 run this command: arch -arm64 sudo pecl install xdebug You can find out which one is it by running this command. And the Pecl tool can't guess which one is it, so you will need to run a specific command depending on the the architecture. PHP on M1 can either be compiled for the x86_64 or arm64 architecture. Make sure you are in the directory with the Xdebug sources and run this command: phpizeĬhoose which command to run depending on your Mac architecture: Or download the sources from the official Xdebug page and unpack them. You will need sources of Xdebug, you can just clone the xdebug repository git clone

When you were installing XAMPP, did you check both XAMP Core Files and XAMPP Developer Files? If not, you will need to reinstall XAMPP.
