Thursday, September 14, 2023
HomePHPMounting Xdebug with Laravel Herd

Mounting Xdebug with Laravel Herd

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 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 data

zend_extension=/ opt/homebrew/lib/ php/pecl/20220829/

# Allow Xdebug

xdebug.mode= debug

Please review the main directions for more details, as well as many thanks to BeyondCode for this wonderful application.


Most Popular

Recent Comments