How to setup XDebug for PHP7 on Mac?

Ali picture Ali · Aug 30, 2015 · Viewed 22.8k times · Source

I've installed PHP 7 on my mac using Homebrew i.e.

$ brew install php70

Also I want to have the the XDebug setup on my machine.

Ideally I would love to have an easy solution like using brew again, but unfortunately it seems there is no such formula exist (at least yet), and the latest package is homebrew/php/php56-xdebug.

I thought before start the manual installation, check here to see if there are any other workaround.

Any advice will be greatly appreciated.

Answer

Eduard Rozenberg picture Eduard Rozenberg · Nov 24, 2015

It is available in Homebrew now as homebrew/php/php71-xdebug.