Installing Xdebug for macOS

1. Open a new Terminal window

2. Enter the following command into the Terminal window and hit return.

pecl install xdebug

3. Enter the following command into the Terminal window and hit return.

valet restart

7. Close the Terminal window.