我找不到xdebug.so

时间:2018-01-23 14:17:43

标签: ubuntu phpstorm xdebug

我正在尝试为PhpStorm设置xdebug。我刚刚安装了xdebug并编辑了php.ini文件。然后我跑

locate xdebug.so

但什么都没发生......

我查看了php -m。它显示我安装了xdebug,但为什么我找不到它的位置?

我的操作系统是Ubuntu 17.10

1 个答案:

答案 0 :(得分:0)

It should be there :

sudo nano /etc/php7.0/fpm/conf.d/20-xdebug.ini

The line zend_extension=xdebug.so should already be there. Add the following lines :

    zend_extension=xdebug.so
    xdebug.remote_enable = 1
    xdebug.remote_connect_back = 1
    xdebug.remote_port = 9000
    xdebug.scream=0 
    xdebug.cli_color=1
    xdebug.show_local_vars=1

I have ubuntu 16 but it should not have changed.

After, sudo service php7.0-fpm restart

so that the changes take effect