[Install Xdebug] Install Xdebug for php 7.2 on Valet #valet #php #test #xdebug
$ pecl install xdebug
If error: ERROR: 'phpize' failed
Download autoconf $ curl http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz > autoconf.tar.gz Untar the autoconf archive $ tar -xvzf autoconf.tar.gz Configure and make – note the folder un-archived may have a different name. $ cd autoconf-2.69 $ ./configure $sudo make && sudo make install
Or
Create a file with phpinfo() Paste in https://xdebug.org/wizard.php And follow the instructions:
Restart the webserver
Add this in the bash_profile or zshrc export XDEBUG_CONFIG="idekey=VSCODE"