I\'m kind of new to using Homebrew, but I love it. It\'s so easy. I\'m trying install Xdebug. Some of the posts on the web say to do this:
brew install xd
I'd found this page while googling how to install xdebug for php 7.1 on osx, and I've decided to leave here my solution:
php 7.1
brew install homebrew/php/php71-xdebug
Maybe it'll be helpful for someone else in future...