Skip to content

Commit 398b290

Browse files
author
André Felipe Dias
committed
fastapi_api: local .vscode/launch.json file to debug from vscode
1 parent 1722f5c commit 398b290

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
6+
// TODO: create tasks to start and stop postgres and redis before/after the debugging
7+
// docker-compose --env-file ${workspaceFolder}../../server/.env.dev
8+
// -f ${workspaceFolder}../../server/docker-compose.yml up postgres redis
9+
"version": "0.2.0",
10+
"configurations": [
11+
{
12+
"name": "Python: FastAPI",
13+
"type": "python",
14+
"request": "launch",
15+
"module": "hypercorn",
16+
"args": [
17+
"--reload",
18+
"--config=hypercorn.toml",
19+
"app:create_app() " // must keep this space at the end of the line
20+
],
21+
"envFile": "${workspaceFolder}/.env"
22+
}
23+
]
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"restructuredtext.confPath": ""
3+
}

0 commit comments

Comments
 (0)