From 77ddb4469761142431779d8c79a3cf5cdeb3ad80 Mon Sep 17 00:00:00 2001 From: JJ Date: Tue, 16 Jul 2024 08:17:14 -0400 Subject: [PATCH] Update VSCode file for Xdebug and troubleshooting Docker instructions. --- .vscode/launch.json | 8 ++++---- contributing.md | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 8ee7f1000..c86745ea6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,10 +10,10 @@ "vendor/" ], "pathMappings": { - "/var/www/html/wp-content/plugins/stream-src": "${workspaceRoot}", - "/var/www/html/wp-content/plugins/stream": "${workspaceRoot}/build", - "/var/www/html": "${workspaceRoot}/local/public" + "/var/www/html/wp-content/plugins/stream-src": "${workspaceFolder}", + "/var/www/html/wp-content/plugins/stream": "${workspaceFolder}/build", + "/var/www/html": "${workspaceFolder}/local/public" } } ] -} \ No newline at end of file +} diff --git a/contributing.md b/contributing.md index 503a632c9..07b767f88 100644 --- a/contributing.md +++ b/contributing.md @@ -54,6 +54,9 @@ We use npm as the canonical task runner for the project. The following commands - `npm run cli -- wp info` where `wp info` is the CLI command to run inside the WordPress container. For example, use `npm run cli -- ls -lah` to list all files in the root of the WordPress installation. - `npm run test` to run PHPunit tests inside the WordPress container. +### Docker issues + +If you are having issues with incorrect versions of Xdebug or other Docker issues, first try rebuilding with no cache and up to date images using the command `docker compose build --no-cache --pull`. Then run `npm run start` as normal. ## Issues Tracker