From 79dd794f724876feb052f6fa7dc5471a65ce27f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=90=E5=AE=B6?= Date: Fri, 12 Apr 2024 15:07:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9vscode=20launch.json=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0tasks.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 18 ++++++++++-------- .vscode/tasks.json | 14 ++++++++++++++ app.toml | 2 +- 3 files changed, 25 insertions(+), 9 deletions(-) create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json index ab6b3ba..1d9f9a0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,16 +1,18 @@ { - // 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": "rust", "type": "lldb", - "request": "launch", - "name": "Debug", - "program": "${workspaceFolder}/target/debug/${workspaceFolderBasename}", - "args": [], - "cwd": "${workspaceFolder}" + "request": "launch", + "program": "${workspaceRoot}/target/debug/${workspaceFolderBasename}", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceRoot}", + "environment": [], + "preLaunchTask":"build", + "externalConsole": true, + } ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..50cd549 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,14 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "cargo", + "command": "build", + "problemMatcher": [ + "$rustc" + ], + "group": "build", + "label": "build" + } + ] +} \ No newline at end of file diff --git a/app.toml b/app.toml index ba2013c..100b736 100644 --- a/app.toml +++ b/app.toml @@ -1,6 +1,6 @@ [server] name = "chuanyue-server" -port = 8080 +port = 8000 debug = true [logger]