
opt/homebrew/lib/php/pecl/20190902/xdebug.so: mach-o, but wrong architecture PHP Warning: Failed loading Zend extension 'xdebug.so' (tried: /opt/homebrew/lib/php/pecl/20190902/xdebug.so (dlopen(/opt/homebrew/lib/php/pecl/20190902/xdebug.so, 9): no suitable image found. Mismatch with the default and PECL will fail, or Xdebug won't load with a On Apple M1 hardware, programs can either be compiled for the native M1/ARM64Īrchitecture, or for the emulated x86_64 architecure. PHP development headers (see Compile below).Xcode's command line tools (run: xcode-select.You can install Xdebug through PECL on Linux & macOS with Homebrew. Installs a version that is no longer supported (see Supported Versions), please install Linux distributions might be providing an old and/or outdated version. Version with the one that matches the PHP version that you are running. Php 81-php-xdebug3, you can substitute the PHP



Linux without an Xdebug package with PECL.How you install Xdebug depends on your system. This section describes on how to install Xdebug.
