From 68ca3059a455bb37478e9cd4e547cf361e28945c Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Fri, 17 Nov 2023 09:25:39 +0200 Subject: [PATCH] Update vim/xdebug.md --- vim/xdebug.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vim/xdebug.md b/vim/xdebug.md index a0ec5db..047acdf 100644 --- a/vim/xdebug.md +++ b/vim/xdebug.md @@ -20,13 +20,27 @@ xdebug.client_host=localhost xdebug.client_port=9003 xdebug.idekey="NVIM" xdebug.log=/tmp/xdebug.log + +; always initiate a debugging session xdebug.start_with_request=yes + +; activates if a "trigger" is present ;xdebug.start_with_request=trigger ``` +To signal the debugger to initiate connections, Xdebug will look whether the XDEBUG_SESSION environment variable is present. + +``` +export XDEBUG_SESSION=1 +``` ### Test ```sh php --info ``` + + +### debug + +- port 9003 must not been blocked