Php Homestead xdebug集成-缺少/usr/bin/xdebug

Php Homestead xdebug集成-缺少/usr/bin/xdebug,php,vagrant,phpstorm,xdebug,homestead,Php,Vagrant,Phpstorm,Xdebug,Homestead,我在homestead 5.4安装中找不到xdebug可执行文件。我该如何解决这个问题 我试过: pecl install xdebug (Build process completed successfully) apt-get install php-xdebug (You are using newest version) apt-get install php-dev (no effect) 该可执行文件对于PhpStorm中的调试进程至关重要,没有该文件,我甚至无法运行进程: 加载

我在homestead 5.4安装中找不到xdebug可执行文件。我该如何解决这个问题

我试过:

pecl install xdebug (Build process completed successfully)
apt-get install php-xdebug (You are using newest version)
apt-get install php-dev (no effect)

该可执行文件对于PhpStorm中的调试进程至关重要,没有该文件,我甚至无法运行进程:

加载/usr/bin/xdebug失败:/usr/bin/xdebug:无法打开共享对象文件:没有此类文件或目录


尝试通过以下方式安装cli模块:

apt-get install php7-cli


但是根本没有“xdebug可执行文件”。Xdebug是一个PHP扩展。。。因此,在Linux(我猜是Mac)上,你应该注意一些
xdebug.so
文件(而在Windows上则是
*.dll
)…“加载失败/usr/bin/xdebug…”——那你一定是做错了什么。您很可能错误配置了PHP/xdebug。您很可能没有启用它-我建议首先运行
php7.1-i | grepxdebug
,并确认
xdebug支持=>已启用
;在此之后,请重新启动php fpm并重试。您看过本教程了吗?sitepoint有一个很好的教程@AlexBelkin,但是。。这是错误的。完全错误。我不知道你为什么认为这条路应该进入那里。如果有的话——它将是一些
*。所以
文件。。而且肯定不会是
/usr/bin/xdebug
--100%。请看下面的示例:
apt-get install php5-cli
Follow the below steps:

1. Type "php -i" in Vagrant box terminal and copy the entire output.

2. Go to "https://xdebug.org/wizard.php", and paste the above copied output in the white box and click on "Analyse my phpinfo() output" button. 

The wizard will show you the exact step by step process to install compatible xdebug in your machine for the specified php version.