代码之家  ›  专栏  ›  技术社区  ›  Aleks G

自制httpd/php上的xdebug config在哪里?

  •  0
  • Aleks G  · 技术社区  · 8 年前

    php.ini /usr/local/etc/php/7.1/php.ini /usr/local/etc/php/7.1/conf.d ,包括 ext-xdebug.ini

    xdebug.ini

    [xdebug]
    zend_extension="/usr/local/opt/php71-xdebug/xdebug.so"
    xdebug.remote_enable=1
    xdebug.remote_port=9001
    xdebug.idekey=INTELLIJ
    

    如果我在命令行上运行 php -i |grep xdebug

    但是,如果我将一个php文件放入web根目录, phpinfo()

    xdebug.remote_enable = false
    xdebug.remote_port = 9000
    xdebug.idekey = _www
    

    1 回复  |  直到 8 年前
        1
  •  1
  •   Aleks G    8 年前

    brew services restart php71 )已获取新设置,调试现在按预期工作。

    推荐文章