Build process completed successfully Installing '/usr/local/Cellar/php@7.1/7.1.33/pecl/20160303/xdebug.so' ERROR: Adding package pecl.php.net/xdebug to registry failed
因为卸载了php,但是之前安装过xdebug。又无法卸载xdebug。
所以执行以下 pecl search xdebug 。
再次重装就好使了 pecl install xdebug.