From 459e467cf216a9413869ee5b430fb6df04f6e31f Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Sun, 20 Sep 2026 11:12:24 +0200 Subject: [PATCH] feat(README): Document Xdebug Signed-off-by: Louis Chmn --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 3090995..d66688b 100644 --- a/README.md +++ b/README.md @@ -497,6 +497,31 @@ apps = ["groupfolders"] # app to enable commands = ["occ groupfolders:create gf", "occ groupfolders:group 1 admin read write share delete"] # commands to run post-setup ``` +## Xdebug + +Haze Xdebug is running in a docker container, you need to tell you IDE how to +properly map the path. The IDE debugger config usually looks like: + +```json + { + "label": "PHP: Debug server within docker", + "adapter": "Xdebug", + "request": "launch", + "port": 9003, + "pathMappings": { + "/var/www/html": "", + "/var/www/html/apps-extra": "", + }, + }, +``` + +This would have to be adapted for detached instances. + +To enable Xdebug for all requests: + +- Uncomment the lines in `haze edit /config/php.ini` +- Then run `haze reload ` + ## FrankenPHP (experimental) You can have Nextcloud run on FrankenPHP.