From 1294ce40410d77bfdc7c7a8c98e658c62461e592 Mon Sep 17 00:00:00 2001 From: chenhe Date: Mon, 5 Feb 2024 16:59:18 +0800 Subject: [PATCH] create launch.json config --- .vscode/launch.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..181ae6f1b4 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,30 @@ +{ + // 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": [ + { + // set root directory to api/ folder + "cwd": "${workspaceFolder}/api", + "name": "Python: Flask", + "type": "python", + "request": "launch", + "module": "flask", + "env": { + "FLASK_APP": "app.py", + "FLASK_DEBUG": "1", + "GEVENT_SUPPORT": "True" + }, + "args": [ + "run", + "--no-debugger", + "--no-reload", + "--host=0.0.0.0", + "--port=5001" + ], + "jinja": true, + "justMyCode": true + } + ] +} \ No newline at end of file