phpstorm + xdebugをやってみた
$ vagrant -v Vagrant 2.1.1
PHP Version 5.6.37
o$ php -v PHP 7.1.16 (cli) (built: Mar 31 2018 02:59:59) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
$ httpd -v Server version: Apache/2.4.33 (Unix) Server built: Apr 3 2018 23:45:11
(1)Debug Build がnoになっていることを確認(PHP Version 5.6.37 のinfo) この値がnoならOK
(2)PEARのインストール PEARというのはPHPの拡張ライブラリ。 PEARのパッケージの中身は純粋なPHPスクリプトなので、 ソースコードの確認や改造が行いやすい
a.$ curl -O http://pear.php.net/go-pear.phar インストールスクリプトのダウンロード
b.$ php -d detect_unicode=0 go-pear.phar インストールの実行
c.$ export PATH=$PATH:/Users/USERNAME/pear/bin .bash_profileにパスを追加
d.$ which pear /Applications/XAMPP/xamppfiles/bin/pear コマンドが確認できれば完了
(3)homebrewインストール $ brew -v Homebrew 1.7.3-17-g817b72d Homebrew/homebrew-core (git revision 1b7b3; last commit 2018-09-04)