Create VSCode launch configs

This commit is contained in:
Steffo 2024-10-21 03:24:07 +02:00
parent 4ebacf6753
commit c554cb5936
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

50
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,50 @@
{
// 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": [
{
"request": "launch",
"name": "Dev Server",
"type": "node",
"program": "${workspaceFolder}/main.ts",
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/local.env",
"runtimeExecutable": "/usr/bin/deno",
"runtimeArgs": [
"run",
"--watch",
"--no-prompt",
"--allow-read='.,$HOME/.cache/deno,$HOME/.cache/node_modules'",
"--allow-env=DOTINO_POSTGRES_STRING,DOTINO_STRATZ_URL,DOTINO_STRATZ_KEY",
"--allow-sys=uid,gid",
"--allow-net=0.0.0.0:8080",
"--inspect-wait",
"src/main.ts"
],
"attachSimplePort": 9229
},
{
"request": "launch",
"name": "Init database",
"type": "node",
"program": "${workspaceFolder}/main.ts",
"cwd": "${workspaceFolder}",
"envFile": "${workspaceFolder}/local.env",
"runtimeExecutable": "/usr/bin/deno",
"runtimeArgs": [
"run",
"--no-prompt",
"--allow-read='.'",
"--allow-env=DOTINO_POSTGRES_STRING",
"--allow-sys=uid,gid",
"--allow-net=0.0.0.0:8080",
"--inspect-wait",
"src/database/init/index.ts"
],
"attachSimplePort": 9229
},
]
}