【问题标题】:Homestead xdebug integration - missing /usr/bin/xdebugHomestead xdebug 集成 - 缺少 /usr/bin/xdebug
【发布时间】:2017-05-02 18:36:07
【问题描述】:

我在我的 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:无法打开共享对象文件:没有这样的文件或目录

【问题讨论】:

  • 但是......根本没有“xdebug 可执行文件”。 Xdebug 是一个 PHP 扩展......所以在 Linux(我猜是 Mac)上,你应该关注一些 xdebug.so 文件(而在 Windows 上它将是 *.dll)......
  • "加载 /usr/bin/xdebug 失败..." -- 那你一定是做错了什么。您很可能错误地配置了 PHP/xdebug。
  • 你很可能没有启用它——我建议先运行php7.1 -i | grep xdebug并确认xdebug support => enabled;在此sudo phpenmod xdebug 之后重新启动 php-fpm 并重试。
  • 你看过这个教程吗'confluence.jetbrains.com/display/PhpStorm/…'sitepoint有一个很好的教程sitepoint.com/install-xdebug-phpstorm-vagrant
  • @AlexBelkin 但是..这是错误的。完全错误。我不知道您为什么认为应该在此处输入这条路径。如果有的话——它将是一些*.so 文件.. 它肯定不会是/usr/bin/xdebug——100%。看看这里的例子:blog.jetbrains.com/phpstorm/2016/06/…

标签: php vagrant phpstorm xdebug homestead


【解决方案1】:

尝试通过以下方式安装 cli-module:

apt-get install php7-cli

apt-get install php5-cli

【讨论】:

    【解决方案2】:
    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.
    

    【讨论】:

      猜你喜欢
      • 2017-04-18
      • 2017-02-05
      • 2022-01-05
      • 1970-01-01
      • 2017-05-13
      • 2016-03-07
      • 1970-01-01
      • 2019-07-09
      • 2017-12-14
      相关资源
      最近更新 更多