

Let’s try this: $ cd /usr/local/Cellar/php/7.2.5/ Install ok: channel:///xdebug-2.6.0Ĭan’t create a directory. If you got the following, skip to part 2. I’ve run into this problem the first time I wanted to install this. Warning: mkdir(): File exists in System.php on line 294 Starting to download xdebug-2.6.0.tgz (283,644 bytes) Installing it if you don’t have it falls outside the scope of this article. Pecl should really come with a homebrew php version, so you should have this.

Among the ones deleted are the xdebug extensions, so there is now no easy way to install it.Īccording to xdebug’s site, the best way to install it when using homebrew is to use the pecl version. You’ll use commands such as error_log, var_dump, and print to see the results of variables and function calls.On 31st March 2018 homebrew’s homebrew-php tap was archived and formulae were merged back into homebrew-core or deleted. This is because PHP includes its own rudimentary error logging. Many developers won’t have a dedicated debugging workflow that uses third-party tools and extensions.

Debugging is a key part of the development process- and Xebug is here to make that process easier 💪 Click to Tweet Why You’d Want To Use Xdebug Given the feature set, there are plenty of ways to use Xdebug (and any similar debugger) within your workflow.
