1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

homebrew環境にX-debugを設定

Posted at

M1でPHP環境構築中、X-debugを設定しようとした。
しかしX-debugで表示されたインストール手順ではできなかったので備忘録。
→ 実は書いてある( https://xdebug.org/docs/install#pecl

参考にした記事

環境

php@8.1をhomebrewでインストール済み

やったこと

peclがインストール済みか確認

which pecl
/opt/homebrew/opt/php@8.1/bin/pecl

インストール

pecl install xdebug
downloading xdebug-3.3.1.tgz ...
Starting to download xdebug-3.3.1.tgz (258,953 bytes)
...

インストールできたか

php -m | grep Xdebug
Xdebug

下記をphp.iniに追記

xdebug.mode=debug
xdebug.start_with_request=yes

できた!

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?