Added VSCode tasks/launch settings.

New settings work with the VSCode C++ extension for for debugging. (which works great on Windows).
The old ones work with the CodeLLDB extension (which works great on Linux but doesn't work well on Windows).
This commit is contained in:
David 2018-12-10 18:45:33 -06:00
parent f8977b8aec
commit 687cfa7003
2 changed files with 58 additions and 0 deletions

24
.vscode/launch.json vendored
View File

@ -4,6 +4,30 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "target/debug/minetest-mumble-wrapper",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"preLaunchTask": "cargo build",
"externalConsole": true
},
{
"name": "Launch (Release)",
"type": "cppvsdbg",
"request": "launch",
"program": "target/release/minetest-mumble-wrapper",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"preLaunchTask": "cargo build release",
"externalConsole": true
},
{
"type": "lldb",
"request": "launch",

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

@ -0,0 +1,34 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "cargo build",
"type": "shell",
"command": "cargo build",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "cargo build release",
"type": "shell",
"command": "cargo build --release",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "cargo test",
"type": "shell",
"command": "cargo test",
"group": {
"kind": "test",
"isDefault": true
}
}
]
}