feat(vscode): add debug configuration for Flask app

Added launch configuration for debugging Flask applications in VSCode. This setup helps streamline development by enabling environment variables and specific launch arguments, improving the debugging experience.
This commit is contained in:
Kumi 2024-09-09 14:24:31 +02:00
parent aaccc5439f
commit 4d82b21c3b
Signed by: kumi
GPG key ID: ECBCC9082395383F

26
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,26 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Flask",
"type": "debugpy",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "ducksforducks.app",
"FLASK_DEBUG": "1"
},
"args": [
"run",
"--no-debugger",
"--no-reload",
"--port=8113"
],
"jinja": true,
"autoStartBrowser": false
}
]
}