From eca5c5eab7414e7ef3f4f95c379bf08f5fa27171 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2023 07:57:18 +0000 Subject: [PATCH] updated things --- .vscode/launch.json | 2 +- README.md | 16 ++++++++++++++ web/pages/home/home.html | 46 ---------------------------------------- 3 files changed, 17 insertions(+), 47 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 08db8a2..2af17b0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,7 +2,7 @@ "version": "0.2.0", "configurations": [ { - "name": "Launch built-in server", + "name": "Xdebug server", "type": "php", "request": "launch", "runtimeArgs": [ diff --git a/README.md b/README.md index 8cfc75d..91d69c4 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,22 @@ Im Terminal dann Webserver starten 2. `php -S localhost:8080` 3. Browser auf http://localhost:8080 öffnen +## oder mit Xdebug + +0. php server vom vorherigen schritt darf nicht laufen +1. xdebug installieren (`sudo apt install php-xdebug` oder `sudo apk add php82-pecl-xdebug`) +2. So oder so ähnlich muss die config aussehen `/etc/php82/conf.d/50_xdebug.ini` + +```ini +[Xdebug] +zend_extension=xdebug +xdebug.mode=debug,develop +xdebug.client_host=host.docker.internal +xdebug.client_port=5902 #same port as in launch.json +``` + +3. Dann im VScode auf debugging -> Grünen pfeil `Xdebug server` drücken + ## Ordnerstruktur ``` diff --git a/web/pages/home/home.html b/web/pages/home/home.html index bc0503a..e5ffbb5 100644 --- a/web/pages/home/home.html +++ b/web/pages/home/home.html @@ -60,49 +60,3 @@ - - - \ No newline at end of file