I have a trouble installing Xdebug on my PHP project. I am on macOS Monterey M1 and I am using XAMPP for launching project on PHP version 7.4.28.
I followed the instructions given on their official webpage:
Download xdebug-3.1.4.tgz
Run: cd xdebug-3.1.4
Run: phpize (See the FAQ if you don't have phpize).
Run: ./configure
Run: make
Run: cp modules/xdebug.so /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902
Update /Applications/XAMPP/xamppfiles/etc/php.ini and add the line:
zend_extension = xdebug
When typing php -v
in my terminal I first get few errors like:
HP Startup: Unable to load dynamic library 'php_soap.dll' (tried: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/php_soap.dll
I tried following the path and I saw that in the specific folder there is Unix Executable File and not the folder with added files..
How can I bypass this? I know XAMPP is not the best solution for Mac, but I see that it has been used by others.