mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-10 07:55:23 +02:00
Improve devcontainer and configure VSCode debugging (#1060)
This commit is contained in:
parent
960378b213
commit
86b450fb8c
6 changed files with 79 additions and 47 deletions
30
.vscode/launch.json
vendored
30
.vscode/launch.json
vendored
|
@ -5,29 +5,21 @@
|
|||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Python: FastAPI",
|
||||
"name": "Mealie Backend",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"module": "uvicorn",
|
||||
"args": ["mealie.app:app"],
|
||||
"args": [
|
||||
"mealie.app:app",
|
||||
"--port",
|
||||
"9000"
|
||||
],
|
||||
"env": {
|
||||
"PRODUCTION": "False",
|
||||
},
|
||||
"justMyCode": false,
|
||||
"jinja": true
|
||||
},
|
||||
{
|
||||
"name": "Python: Current File",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": false
|
||||
},
|
||||
{
|
||||
"name": "Debug Tests",
|
||||
"type": "python",
|
||||
"request": "test",
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": false,
|
||||
"env": { "PYTEST_ADDOPTS": "--no-cov" }
|
||||
"jinja": true,
|
||||
"preLaunchTask": "Init Database"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue