From eb0cb22edd8e753ec4e2dfe57da784139bdae8f7 Mon Sep 17 00:00:00 2001 From: Christian Schindler Date: Sat, 20 Apr 2024 06:53:23 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9E.vscode/launch.json=E2=80=9C=20=C3=A4n?= =?UTF-8?q?dern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 107 +++++++++++++++++++++++++------------------- 1 file changed, 61 insertions(+), 46 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 6df0f87..c4529b1 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,48 +1,63 @@ { - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "Backend starten", - "skipFiles": [ - "/**", - "node_modules/**" + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Debug Jest Tests", + "program": "${workspaceRoot}/backend/node_modules/jest/bin/jest", + "args": ["--runInBand"], + "cwd": "${workspaceRoot}/backend", + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen" + }, + { + "type": "node", + "request": "launch", + "name": "Debug Backend", + "skipFiles": [ + "/**", + "node_modules/**" + ], + "cwd": "${workspaceFolder}/backend", + "internalConsoleOptions": "openOnSessionStart", + "env": { + "LOCAL_MODE": "true" + }, + "args": [ + "node_modules/ts-node/dist/bin.js", + "--project", + "${workspaceFolder}/backend/tsconfig.json", + "-r", + "tsconfig-paths/register", + "src/index.ts" + ], + "runtimeArgs": [ + "-r", + "ts-node/register", + "--unhandled-rejections=strict", + "--nolazy" + ], + "program": "${workspaceFolder}/backend/src/index.ts", + "preLaunchTask": "Install Backend Dependencies" + }, + { + "name": "Debug Frontend", + "type": "chrome", + "request": "launch", + "url": "http://localhost:3000", + "webRoot": "${workspaceFolder}/frontend/src", + "preLaunchTask": "Start Frontend", + "postDebugTask": "Terminate All Tasks", + "sourceMaps": true, + "skipFiles": ["node_modules/**"], + "runtimeExecutable": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" + } ], - "cwd": "${workspaceFolder}/backend", - "internalConsoleOptions": "openOnSessionStart", - "env": { - "LOCAL_MODE": "true" - }, - "args": [ - "node_modules/ts-node/dist/bin.js", - "--project", - "${workspaceFolder}/backend/tsconfig.json", - "-r", - "tsconfig-paths/register", - "src/index.ts" - ], - "runtimeArgs": [ - "-r", - "ts-node/register", - "--unhandled-rejections=strict", - "--nolazy" - ], - "program": "${workspaceFolder}/backend/src/index.ts", - "preLaunchTask": "Install Backend Dependencies" -}, - { - "name": "Debug Frontend", - "type": "chrome", - "request": "launch", - "url": "http://localhost:3000", - "webRoot": "${workspaceFolder}/frontend/src", - "preLaunchTask": "Start Frontend", - "postDebugTask": "Terminate All Tasks", - "sourceMaps": true, - "skipFiles": ["node_modules/**"], - "runtimeExecutable": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" - } - ] - } - \ No newline at end of file + "compounds": [ + { + "name": "Debug Frontend and Backend", + "configurations": ["Debug Backend", "Debug Frontend"] + } + ] +} \ No newline at end of file