Skip to content

Commit ca5e451

Browse files
chore: add fastapi debug config
1 parent bb80915 commit ca5e451

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.vscode/launch.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,25 @@
2121
"PYDEVD_DISABLE_FILE_VALIDATION": "1"
2222
}
2323
},
24+
{
25+
"name": "Python: FastAPI",
26+
"type": "debugpy",
27+
"request": "launch",
28+
"module": "uvicorn",
29+
"args": [
30+
"main:app",
31+
"--reload",
32+
"--host",
33+
"0.0.0.0",
34+
"--port",
35+
"3000"
36+
],
37+
"cwd": "${workspaceFolder}/app",
38+
"console": "integratedTerminal",
39+
"env": {
40+
"PYTHONPATH": "${workspaceFolder}"
41+
}
42+
},
2443
{
2544
"name": "Python: Debug Tests",
2645
"type": "debugpy",

0 commit comments

Comments
 (0)