Category: Laravel, Laravel, PHP, PHP, nodejs, nodejs

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.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners