Setting up xdebug for php in MacOS

arch -arm64 sudo pecl install xdebug

last working with php 7.4 is 3.1.6

arch -arm64 sudo pecl install xdebug-3.1.6

 

[Xdebug]
;xdebug.start_with_request=default
;xdebug.idekey=PHPSTORM
xdebug.client_port=9090
xdebug.mode=debug
zend_extension="xdebug.so"