0
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?

M4 mac miniのMAMPでxdebugを動かす方法

Last updated at Posted at 2025-02-02

結論:xdebugがうまく動作しない原因はmamp内のPHPでlaravelをインストールしていなかった事が原因だった

①mampをインストール
インストール後、mamp7からhttpd.confのLoadModule rewrite_module modules/mod_rewrite.soがコメント化されているので有効化してあげる

②ホームディレクトリにある.zprofileにmampのPHPのパスを通す。
export PATH="/Applications/MAMP/bin/php/php8.X.X/bin:$PATH"
source ~/.zprofileで反映

※XAMPPの場合は以下を設定すること
export PATH=/Applications/XAMPP/bin:$PATH;

③sudo pecl install xdebugを実行すると
/Applications/MAMP/bin/php/phpX.X.X/lib/php/extensions/no-debug-non-zts-XXXXXXX内に
xdebug.soが作成される。

0
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
0
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?