🔧 Add VS Code debug configs (#620)

This commit is contained in:
Sebastián Ramírez
2024-02-29 14:19:11 +01:00
committed by GitHub
parent c49bf29b0e
commit f0c433ae5f

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

@@ -0,0 +1,31 @@
{
// 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 FastAPI Project backend: Python Debugger",
"type": "debugpy",
"request": "launch",
"module": "uvicorn",
"args": [
"app.main:app",
"--reload"
],
"cwd": "${workspaceFolder}/src/backend",
"jinja": true,
"envFile": "${workspaceFolder}/src/.env",
"env": {
"POSTGRES_SERVER": "localhost"
}
},
{
"type": "chrome",
"request": "launch",
"name": "Debug Frontend: Launch Chrome against http://localhost:5173",
"url": "http://localhost:5173",
"webRoot": "${workspaceFolder}/src/new-frontend"
},
]
}