我正在尝试将 PhpStorm 设置为在 Vagrant Homestead 环境中正确调试。Xdebug 已正确安装,我正在运行 PHP 7.1
在我的应用程序中设置断点后,脚本会通过任何断点,我收到以下消息:
debug session was finished without being paused
It may be caused by path mappings misconfiguration or not synchronized local and remote projects.
To figure out the problem check path mappings configuration for 'wedleague.loc' server at PHP|Servers or enable Break at first line in PHP scripts option (from Run menu).
我已经检查了映射并为项目的根设置了这个:
local path remote path
file://C:/vagrant/projects/wedleague /home/vagrant/code/wedleague
如果我在第一个断点处设置调试,我可以通过调试会话工作。
在这里尝试了很多答案,但似乎没有任何效果。
我可以尝试什么让调试会话正常工作?
更新: 我也试过这个映射(如建议的那样)
file://C:/vagrant/projects/wedleague/public /home/vagrant/code/wedleague/public
仍然无法使用此配置:(