LoginSignup
1
2

More than 5 years have passed since last update.

xdebugが動かない。MAMPにphp.iniが2箇所?

Posted at

少しハマったので、同じ問題に会った人に参考になれば。

MACのPHP開発を作って、Xdebugを有効化にするが、

/Applications/MAMP/conf/phpx.x.x/php.ini に設定したが、phpinfoにxdebugが出てこない!?

[xdebug]
zend_extension="/Applications/MAMP/bin/php/phpx.x.x/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey=netbeans-xdebug
xdebug.profiler_enable=1
xdebug.profiler_output_dir="/Applications/MAMP/tmp"

解決はこれ。
なんと、php.ini2箇所あった。

/Applications/MAMP/bin/php/phpx.x.x/conf/php.ini

ここも同じようにxdebugの設定を追加すると、うまく行った。

1
2
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
2