Tag

IDE / Editor

IDE / Editor

Setting up Xdebug (Laravel Valet / PHP 7.4 / PHPStorm)

This tutorial describes how to set up Xdebug in combination with Laravel Valet, PHP 7.4, and PHPStorm. The prerequisite is that Laravel Valet is installed as described here. Installing Xdebug The first step is to prepare PECL: pecl channel-update pecl.php.net ; pecl clear-cache Now, we can install Xdebug: pecl install xdebug Next, restart Laravel Valet: valet restart In the next step, we check if XDebug is installed correctly: php -m | grep 'xdebug' The output should contain xdebug. Now we n

Sebastian Widmann

Sebastian Widmann

Webdesigner / Web developer

IDE / Editor

Reset PhpStorm When Using macOS

If you are using macOS and want to reset PhpStorm to its default settings, you can use these commands (run them from a terminal): rm -r -f ~/Library/Preferences/PhpStorm20.* rm -r -f ~/Library/Caches/PhpStorm20.* rm -r -f ~/Library/Application Support/PhpStorm20* rm -r -f ~/Library/Logs/PhpStorm20* These commands remove configuration (in Preferences folder), caches (in Caches folder), plugins (in Application Support folder) and logs (in Logs folder). More information can be found here.

Sebastian Widmann

Sebastian Widmann

Webdesigner / Web developer