无法连接xdebugger(流浪者laravel phpstorm)

无法连接xdebugger(流浪者laravel phpstorm),laravel,vagrant,phpstorm,xdebug,Laravel,Vagrant,Phpstorm,Xdebug,我有一个流浪汉在跑步 本地主机:8931 当我使用phpstorm“验证调试器配置”时,一切似乎都很好 但是,当我连接到代码中有断点的站点时,在连接请求窗口中切换的php脚本的第一行中断不会出现?您必须首先开始侦听远程连接(运行|开始侦听php调试连接)。此外,您还需要在$请求中的某个位置设置XDEBUG\u SESSION=PHPSTORM。我使用cookie切换调试器(添加到浏览器) 还要检查php.ini中是否有这些设置: ; disable profiler xdebug.profile

我有一个流浪汉在跑步 本地主机:8931

当我使用phpstorm“验证调试器配置”时,一切似乎都很好


但是,当我连接到代码中有断点的站点时,在连接请求窗口中切换的php脚本的第一行中断不会出现?

您必须首先开始侦听远程连接(运行|开始侦听php调试连接)。此外,您还需要在$请求中的某个位置设置XDEBUG\u SESSION=PHPSTORM。我使用cookie切换调试器(添加到浏览器)

还要检查php.ini中是否有这些设置:

; disable profiler
xdebug.profiler_enable = 0
; enable if ?XDEBUG_PROFILE is added to URL
xdebug.profiler_enable_trigger = 1
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9000
xdebug.default_enable = "Off"
xdebug.remote_autostart = 0

最后我使用了这些设置xdebug.remote\u enable=1 xdebug.remote\u connect\u back=1 xdebug.remote\u port=9000 xdebug.remote\u host=192.168.33.10 xdebug.ide\u key=PHPSTORM并将它们放在xdebug.ini扩展中