„.vscode/launch.json“ ändern

This commit is contained in:
2024-04-20 06:53:23 +00:00
parent 579d38719f
commit eb0cb22edd

107
.vscode/launch.json vendored
View File

@@ -1,48 +1,63 @@
{ {
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"name": "Backend starten", "name": "Debug Jest Tests",
"skipFiles": [ "program": "${workspaceRoot}/backend/node_modules/jest/bin/jest",
"<node_internals>/**", "args": ["--runInBand"],
"node_modules/**" "cwd": "${workspaceRoot}/backend",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Debug Backend",
"skipFiles": [
"<node_internals>/**",
"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", "compounds": [
"internalConsoleOptions": "openOnSessionStart", {
"env": { "name": "Debug Frontend and Backend",
"LOCAL_MODE": "true" "configurations": ["Debug Backend", "Debug Frontend"]
}, }
"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"
}
]
}