やりたいこと
xdebugをインストールし、phpstormでデバックができるようにしたい
環境
・laravel5.5
・php7.1
・docker使用
現状、下記エラーが発生し、ここから作業が止まってしまいました。
そのため、こちらでご教授いただければと思います。
brew install php71-xdebug
を実行すると下記エラーが発生。
Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). ==> Updated Formulae openblas paket Error: No available formula with the name "php71-xdebug" ==> Searching for a previously deleted formula (in the last month)... Warning: homebrew/core is shallow clone. To get complete history run: git -C "$(brew --repo homebrew/core)" fetch --unshallow Error: No previously deleted formula found. ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... ==> Searching taps on GitHub... Error: No formulae found in taps.
こちらのを参考にやっても見ましたが、
同じように帰っては来なく、新規でファイルが開きました。
https://qiita.com/weed/items/98b4aacbd6e52a2bde2e
よろしくお願いいたします。
追記:
php -v
を実行すると
Xdebug requires Zend Engine API version 220131226. The Zend Engine API version 320160303 which is installed, is newer. Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug. PHP 7.1.19 (cli) (built: Jun 25 2018 10:43:49) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.1.19, Copyright (c) 1999-2018, by Zend Technologies
と表示されました。
調べるとphpとxdebugのapiのバージョンがあっていないということなのですが、phpのバージョンは開発現場で指定されて入るため変えることができません。
回答1件
あなたの回答
tips
プレビュー