【发布时间】:2015-08-14 02:19:31
【问题描述】:
我有一个 Homestead vagrant VM 设置。 Xdebug 是所有开箱即用的远程调试设置。
我可以在这里看到这个 /etc/php5/fpm/conf.d/20-xdebug.ini
并通过php -i | grep 'xdebug'
我在我的默认 index.php 中设置了一个断点,并在我的 IDE PHPstorm 中单击了“开始侦听 PHP 调试连接”。
我已经为 chrome 安装了 xdebug helper 并打开它,还在它的设置中将我的 IDE 字符串设置为 PHPstorm。
我尝试在我的 IDE 和 xdebug 设置中设置不同的端口。
我也试过用sudo nc -l 9002监听这些端口
在主机和来宾机器上,没有任何连接,所以这里的问题肯定是 PHP 服务器中的 xdebug 设置。
【问题讨论】:
标签: php vagrant phpstorm xdebug homestead