From 016d6de6d68aafbadba20041790ace3f4916a7f9 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Tue, 4 Jul 2023 17:20:55 -0400 Subject: [PATCH] Add debug target for playlet web --- .vscode/launch.json | 13 +++++++++++++ docs/README.md | 2 ++ 2 files changed, 15 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index f5526c23..7c098bd5 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -57,6 +57,19 @@ "name": "Playlet Web (Dev)", "request": "launch", "type": "node-terminal" + }, + { + "type": "chrome", + "request": "launch", + "name": "Playlet Web (Chrome)", + "webRoot": "${workspaceFolder}/playlet-web/src" + } + ], + "compounds": [ + { + "name": "Playlet Web (Debug)", + "configurations": ["Playlet Web (Dev)", "Playlet Web (Chrome)"], + "stopAll": true } ] } \ No newline at end of file diff --git a/docs/README.md b/docs/README.md index be09a585..996d791c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -273,6 +273,8 @@ You will notice that thr browser tab that just opened shows an url like `http:// This is because the web app will be served from Vite, while API calls to the playlet will be done to the Playlet lib webserver. +For debugging, choose the compound target `Playlet Web (Debug)`. + ### Tailwind/Daisy UI Playlet web app uses [Tailwind CSS](https://tailwindcss.com/) as its base styling library. Additionally, it uses [DaisyUI](https://daisyui.com/) as it offers a versatile set of components, and has built-in supports for themes.