Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

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

More than 3 years have passed since last update.

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

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の設定を追加すると、うまく行った。

tekich
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away