From 175b3bf6ac1229d818dfd717adddb33a95d9a486 Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Fri, 17 Nov 2023 11:47:46 +0200 Subject: [PATCH] Update vim/xdebug.md --- vim/xdebug.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/vim/xdebug.md b/vim/xdebug.md index 4c66fa1..5e47375 100644 --- a/vim/xdebug.md +++ b/vim/xdebug.md @@ -49,6 +49,23 @@ php -r 'xdebug_info();' ## Adapter +```sh +cd ~ +git clone https://github.com/xdebug/vscode-php-debug.git +cd vscode-php-debug +npm install && npm run build +``` + +Debug adapter nvim plugin + +`:MasonInstall php-debug-adapter` + +Debug chrome plugin + +(https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc) + +to trigger debugger send the cookie `XDEBUG_SESSION=XDEBUG_ECLIPSE; Path=/; Expires=Sat, 27 Jul 2024 08:17:10 GMT;` + `.local/share/nvim/mason/packages/php-debug-adapter/extension/package.json` ```json