From a6b0f788e7ea0ad5499aab4356d9e4fdbf391abf Mon Sep 17 00:00:00 2001 From: Garfield Dai Date: Fri, 1 Sep 2023 09:15:06 +0800 Subject: [PATCH] feat: add visual studio code debug config. (#1068) Co-authored-by: Keruberosu <631677014@qq.com> --- .gitignore | 3 ++- .vscode/launch.json | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json diff --git a/.gitignore b/.gitignore index 3a7773ccbe..5a43c946f0 100644 --- a/.gitignore +++ b/.gitignore @@ -149,4 +149,5 @@ sdks/python-client/build sdks/python-client/dist sdks/python-client/dify_client.egg-info -.vscode/ \ No newline at end of file +.vscode/* +!.vscode/launch.json \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..515deb4c0c --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,27 @@ +{ + // 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: Flask", + "type": "python", + "request": "launch", + "module": "flask", + "env": { + "FLASK_APP": "api/app.py", + "FLASK_DEBUG": "1", + "GEVENT_SUPPORT": "True" + }, + "args": [ + "run", + "--host=0.0.0.0", + "--port=5001", + "--debug" + ], + "jinja": true, + "justMyCode": true + } + ] +} \ No newline at end of file