added vscode tasks & launch

This commit is contained in:
2024-01-05 09:13:08 +01:00
parent 79dbe04245
commit 0b55fb0f6a
2 changed files with 66 additions and 0 deletions

36
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,36 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "node",
"request": "launch",
"envFile": "${workspaceFolder}/.env",
"runtimeArgs": [
"run", // this is `run` from `npm run`
"dev" // this is `dev` from `npm run dev`
],
"runtimeExecutable": "npm",
"cwd": "${workspaceFolder}/",
"localRoot": "${workspaceFolder}/",
"remoteRoot": "/app/",
"skipFiles": [
"<node_internals>/**",
"./server/<node_internals>/**",
"./script/**"
],
"preLaunchTask": "start-mongo",
"postDebugTask": "terminate-mongo",
// "restart": true,
"outputCapture": "std", // this will capture the output of the process and show it in the debug console
"presentation": {
"hidden": false,
"group": "Debug",
"order": 0
}
}
]
}