From 2a8cfd16d873dde184a681c2453e605518bcb5eb Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Fri, 17 Nov 2023 10:53:06 +0200 Subject: [PATCH] Update vim/xdebug.md --- vim/xdebug.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vim/xdebug.md b/vim/xdebug.md index a55710e..cb5b99d 100644 --- a/vim/xdebug.md +++ b/vim/xdebug.md @@ -48,6 +48,17 @@ php -r 'xdebug_info();' ``` ### Trigger + +Xdebug will initiate a debug session in the presence of the XDEBUG_SESSION HTTP cookie. + +You can pick any value for the cookie, unless xdebug.trigger_value is set. + +A typical header looks like: + +``` +Cookie: XDEBUG_SESSION=start +``` + To signal the debugger to initiate connections, Xdebug will look whether the XDEBUG_SESSION environment variable is present. ```