- xingchongs-MacBook-Pro-3:~ xingchong$
- xingchongs-MacBook-Pro-3:~ xingchong$
- xingchongs-MacBook-Pro-3:~ xingchong$ brew search php56-xdebug
- ==> Searching local taps...
- josegonzalez/php/php56-xdebug
- ==> Searching taps on GitHub...
- homebrew/php/php56-xdebug
- ==> Searching blacklisted, migrated and deleted formulae...
- xingchongs-MacBook-Pro-3:~ xingchong$ brew install josegonzalez/php/php56-xdebug
- Updating Homebrew...
- ==> Installing php56-xdebug from josegonzalez/php
- ==> Downloading https://homebrew.bintray.com/bottles-php/php56-xdebug-2.5.5.sierra.bottle.tar.gz
- ######################################################################## 100.0%
- ==> Pouring php56-xdebug-2.5.5.sierra.bottle.tar.gz
- ==> Caveats
- To finish installing xdebug for PHP 5.6:
- * /usr/local/etc/php/5.6/conf.d/ext-xdebug.ini was created,
- do not forget to remove it upon extension removal.
- * Validate installation via one of the following methods:
- *
- * Using PHP from a webserver:
- * - Restart your webserver.
- * - Write a PHP page that calls "phpinfo();"
- * - Load it in a browser and look for the info on the xdebug module.
- * - If you see it, you have been successful!
- *
- * Using PHP from the command line:
- * - Run `php -i "(command-line phpinfo())"`
- * - Look for the info on the xdebug module.
- * - If you see it, you have been successful!
- ==> Summary
- ?? /usr/local/Cellar/php56-xdebug/2.5.5: 4 files, 196KB
- xingchongs-MacBook-Pro-3:~ xingchong$
- xingchongs-MacBook-Pro-3:~ xingchong$
- xingchongs-MacBook-Pro-3:~ xingchong$
来源: http://www.bubuko.com/infodetail-2496654.html