Xdebug Mac Download

Install xdebug

// I can verify this is NOT the case, //no xdebug commits so far (2019-01-24) work for php 7.3.1, as least not working on my mac If you want to use pecl to install xdebug, you will need to use brew to install php first because php 7.1.9 bundled with Mojava does not have pecl. By joining Download.com. Mac Apps for Debugging Filter. Profiling and analysis tool for php and xdebug. MacCallGrind Intel Video Pro Analyzer Free.

DownloadDownloadDownload

If you have brew installed with multiple PHP versions i.e. 7.1, 7.2 and 7.3 on Mac OS X mojave, you can to do the following:

On a Mac, Homebrew will be the most convenient way to install Xdebug. On Linux however, compiling it yourself is the best way to go; which is not that easy on a Mac. Tip: Windows users just need to download the.dll file from Xdebug.org, put it into the XAMPP folder and add the path to their php.ini file.

  1. Install autoconf with brew brew install autoconf.

  2. Change to the PHP version that you want Xdebug on, run brew unlink php@7.1 && brew link --force --overwrite php. This will switch from PHP 7.1 to PHP 7.3.

  3. Download the latest Xdebug source from xdebug website.

  4. Extract the Xdebug tar and navigate to extracted directory, where you'd see all the files.

  5. Run phpize to configure the build for the new Zend engine.

  6. Run ./configure.

  7. Run make.

  8. Xdebug extension xdebug.so gets compiled in modules directory.

  9. Create a new directory path under /usr/local/lib/php/7.3.1/extensions/ and copy xdebug.so to this location. Here, 7.3.1 is the current version that I switched earlier, change this to match your PHP version.

  10. Open php.ini in an editor and enter
    zend_extension='/usr/local/lib/php/7.3.1/extensions/xdebug.so' then save the change.

  11. Run php -v and it will show Xdebug has been configured correctly.

Xdebug Helper

Mac

Xdebug Mac Download Full

If you want to configure Xdebug on another PHP version then just repeat from step 2 all the way to 11. As mentioned in earlier post, this way you don't need to disable/enable System Integrity Protection on Mac OS X.