From 4d82b21c3b07af464ac519d3e858fcb39962a934 Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 9 Sep 2024 14:24:31 +0200 Subject: [PATCH] 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. --- .vscode/launch.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..bffedf0 --- /dev/null +++ b/.vscode/launch.json @@ -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 + } + ] +} \ No newline at end of file