47 lines
1.0 KiB
JSON
47 lines
1.0 KiB
JSON
|
|
{
|
||
|
|
"version": "0.2.0",
|
||
|
|
"configurations": [
|
||
|
|
{
|
||
|
|
"name": "FastAPI: Uvicorn (Local Debug)",
|
||
|
|
"type": "python",
|
||
|
|
"request": "launch",
|
||
|
|
"module": "uvicorn",
|
||
|
|
"args": [
|
||
|
|
"server.main:app",
|
||
|
|
"--host",
|
||
|
|
"127.0.0.1",
|
||
|
|
"--port",
|
||
|
|
"8000",
|
||
|
|
"--reload"
|
||
|
|
],
|
||
|
|
"env": {
|
||
|
|
"PYTHONPATH": "${workspaceFolder}"
|
||
|
|
},
|
||
|
|
"cwd": "${workspaceFolder}",
|
||
|
|
"justMyCode": true,
|
||
|
|
"console": "integratedTerminal"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "FastAPI: Debug Mode (debugpy wait)",
|
||
|
|
"type": "python",
|
||
|
|
"request": "launch",
|
||
|
|
"program": "${workspaceFolder}/server/debug_run.py",
|
||
|
|
"env": {
|
||
|
|
"PYTHONPATH": "${workspaceFolder}"
|
||
|
|
},
|
||
|
|
"cwd": "${workspaceFolder}",
|
||
|
|
"justMyCode": true,
|
||
|
|
"console": "integratedTerminal"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "Attach to debugpy (5678)",
|
||
|
|
"type": "python",
|
||
|
|
"request": "attach",
|
||
|
|
"connect": {
|
||
|
|
"host": "localhost",
|
||
|
|
"port": 5678
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|