39 lines
1.2 KiB
JSON
39 lines
1.2 KiB
JSON
{
|
|
// VS Code launch configurations for debugging the TraceStudio backend
|
|
// - Use "Uvicorn (Launch, no-reload)" for normal debugging (no auto-reload)
|
|
// - Use "Attach to Uvicorn (debugpy)" to attach to a process started with debugpy
|
|
// - Use "Uvicorn (Launch with debugpy)" to start uvicorn under debugpy listener (waits for client)
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Python: Uvicorn (Launch, no-reload)",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "uvicorn",
|
|
"args": ["server.main:app", "--host", "127.0.0.1", "--port", "8000"],
|
|
"jinja": true,
|
|
"justMyCode": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "Python: Uvicorn (Launch with debugpy)",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "debugpy",
|
|
"args": ["--listen", "5678", "--wait-for-client", "-m", "uvicorn", "server.main:app", "--host", "127.0.0.1", "--port", "8000"],
|
|
"justMyCode": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"name": "Python: Attach to Uvicorn (debugpy)",
|
|
"type": "python",
|
|
"request": "attach",
|
|
"connect": {
|
|
"host": "localhost",
|
|
"port": 5678
|
|
},
|
|
"justMyCode": false
|
|
}
|
|
]
|
|
}
|