From 51ed7d4f960c86a06fbbe88a3c7f8f8b6dd40884 Mon Sep 17 00:00:00 2001 From: cruld Date: Sat, 29 Mar 2025 22:24:03 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(vscode):=20add=20launch=20and?= =?UTF-8?q?=20task=20configuration=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 launch.json 文件以支持调试配置 - 新增 tasks.json 文件以支持运行任务 --- Python/Web/.vscode/launch.json | 36 ++++++++++++++++++++++++++++++++++ Python/Web/.vscode/tasks.json | 29 +++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 Python/Web/.vscode/launch.json create mode 100644 Python/Web/.vscode/tasks.json diff --git a/Python/Web/.vscode/launch.json b/Python/Web/.vscode/launch.json new file mode 100644 index 0000000..1fa6086 --- /dev/null +++ b/Python/Web/.vscode/launch.json @@ -0,0 +1,36 @@ +{ + // 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": "调试", + "type": "debugpy", + "request": "launch", + "module": "uvicorn", + "env": { + "TYPE": "client" + }, + "args": [ + "app.main:app", + "--reload" + ], + "jinja": true + }, + { + "name": "调试管理端", + "type": "debugpy", + "request": "launch", + "module": "uvicorn", + "env": { + "TYPE": "admin" + }, + "args": [ + "app.main_admin:app", + "--reload" + ], + "jinja": true + } + ] +} \ No newline at end of file diff --git a/Python/Web/.vscode/tasks.json b/Python/Web/.vscode/tasks.json new file mode 100644 index 0000000..b486b46 --- /dev/null +++ b/Python/Web/.vscode/tasks.json @@ -0,0 +1,29 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "运行", + "type": "shell", + "command": "uvicorn app.main:app --host 0.0.0.0 --reload", + "problemMatcher": [], + "options": { + "env": { + "TYPE": "client" + } + } + }, + { + "label": "运行管理端", + "type": "shell", + "command": "uvicorn app.main_admin:app --host 0.0.0.0 --reload", + "problemMatcher": [], + "options": { + "env": { + "TYPE": "admin" + } + } + } + ] +} \ No newline at end of file