Herd does not deliver with Xdebug out of package, yet you can by hand mount as well as assemble the Xdebug PHP expansion using Homebrew as well as pecl.
Right Here are the directions:
Very first Install php using Homebrew:
mixture mount php
Next off, pecl mount Xdebug
pecl mount xdebug
This produces an xdebug.so expansion data that you can currently trigger as well as make use of with Laravel Herd.
On an M1/M2 Mac, the expansion can be fount at
/ opt/homebrew/lib/ php/pecl On an Intel Mac, it will certainly go to
/ usr/local/lib/ php/pecl
Ultimately, trigger Xdebug
You might trigger Xdebug by editing and enhancing your php.ini data. This data lies at
~/ Library/Application Support/Herd/config/ php/<< variation>>/ php.ini
# Outright course to the xdebug.so data
zend_extension=/ opt/homebrew/lib/ php/pecl/20220829/ xdebug.so
# Allow Xdebug