aravel offers some good tools for debugging and for many cases this may be enough — but if it gets choppy, a real debugger is simply unbeatable. In this small article I show how to configure PhpStorm to use xDebug to debug a Laravel app.
TroubleshootingError mkdir(): If your installation fails due to an error like this, you simply need to make the directory which the script could not: Now you can reinstall xdebug and it should work.
Add this lines to ext-xdebug.ini : Double check, that the path behind zend_extension is the path to your xdebug installation: ls /usr/local/opt/php@7.4/pecl/20190902 .
Now expand the PHP Node and go to PHP > Debug > DBGp Proxy and set IDE Key to PHPSTORM and Port to 9001.