修改vscode launch.json,增加tasks.json

This commit is contained in:
李运家 2024-04-12 15:07:58 +08:00
parent f9be9e406b
commit 79dd794f72
3 changed files with 25 additions and 9 deletions

14
.vscode/launch.json vendored
View File

@ -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", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "rust",
"type": "lldb", "type": "lldb",
"request": "launch", "request": "launch",
"name": "Debug", "program": "${workspaceRoot}/target/debug/${workspaceFolderBasename}",
"program": "${workspaceFolder}/target/debug/${workspaceFolderBasename}",
"args": [], "args": [],
"cwd": "${workspaceFolder}" "stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"preLaunchTask":"build",
"externalConsole": true,
} }
] ]
} }

14
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,14 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "build",
"problemMatcher": [
"$rustc"
],
"group": "build",
"label": "build"
}
]
}

View File

@ -1,6 +1,6 @@
[server] [server]
name = "chuanyue-server" name = "chuanyue-server"
port = 8080 port = 8000
debug = true debug = true
[logger] [logger]