无法让 xdebugger 连接 (vagrant laravel phpstorm)
Cant get xdebugger to connect (vagrant laravel phpstorm)
我有一个流浪者运行服务于
localhost:8931
当我使用 phpstorm 'Validate Debugger Configuration' 时,一切似乎都很好。 See here
但是当我使用代码中的断点连接到站点时,在连接请求 window 切换的 php 脚本的第一行中断没有显示?
您必须首先开始侦听远程连接(运行 | 开始侦听 PHP 调试连接)。此外,您还需要在 $_REQUEST 中的某处设置 XDEBUG_SESSION=PHPSTORM。我使用 cookie 来切换调试器(将 bookmarklets 添加到您的浏览器)。
同时检查 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
我有一个流浪者运行服务于 localhost:8931
当我使用 phpstorm 'Validate Debugger Configuration' 时,一切似乎都很好。 See here
但是当我使用代码中的断点连接到站点时,在连接请求 window 切换的 php 脚本的第一行中断没有显示?
您必须首先开始侦听远程连接(运行 | 开始侦听 PHP 调试连接)。此外,您还需要在 $_REQUEST 中的某处设置 XDEBUG_SESSION=PHPSTORM。我使用 cookie 来切换调试器(将 bookmarklets 添加到您的浏览器)。
同时检查 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