From 5acb524e9c334d0ee4016b4a234460c9df5f52aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Fri, 24 Nov 2023 11:15:01 +0100 Subject: [PATCH] make sure that local dev logs in vscode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- docs/local-dev/debugging.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/local-dev/debugging.md b/docs/local-dev/debugging.md index 68e37374f6..17a98b1c1c 100644 --- a/docs/local-dev/debugging.md +++ b/docs/local-dev/debugging.md @@ -57,6 +57,7 @@ In your `launch.json`, add a new entry with the following, ```jsonc { "name": "Start Backend", + "type": "node", "request": "launch", "args": [ "package", @@ -67,8 +68,6 @@ In your `launch.json`, add a new entry with the following, "skipFiles": [ "/**" ], - "type": "node" + "console": "integratedTerminal" }, ``` - -You may notice that the normal logs mentioned above do not get logged, this is an issue with the logging library we're using, `winston`, and is not easily solved. See [this thread](https://github.com/winstonjs/winston/issues/1544) for more information.