【发布时间】:2015-02-20 02:10:35
【问题描述】:
我正在尝试使用 PHPStorm 将 Xdebug 远程调试设置为位于 Varnish 后面的站点作为缓存层。
Varnish 作为 80 端口上的前端,Apache 作为 8080 端口上的后端与之通信。
如果我绕过 Varnish 并直接与端口 8080 上的站点对话 Xdebug 和 Phpstorm 按预期工作,但是我并没有真正正确地测试系统 - 我真正需要做的是触发调试会话,即使请求通过 Varnish 代理。
显然我不希望缓存的内容触发调试会话,但未缓存的内容仍然应该。
我的Xdebug设置如下:
; xdebug
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.scream=0
xdebug.cli_color=1
xdebug.show_local_vars=1
【问题讨论】:
标签: php phpstorm xdebug varnish