1
0
Fork 0
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:
Daniel Palstra 2022-03-16 17:37:56 +01:00 committed by GitHub
parent 960378b213
commit 86b450fb8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 79 additions and 47 deletions

30
.vscode/launch.json vendored
View file

@ -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"
}
]
}