VSCode: Add launch tasks for debugging in vscode
This commit is contained in:
Vendored
+54
-44
@@ -2,68 +2,78 @@
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Create Build Directory",
|
||||
"type": "shell",
|
||||
"command": "mkdir -p b",
|
||||
"problemMatcher": [],
|
||||
"detail": "Creates the build directory."
|
||||
},
|
||||
{
|
||||
"label": "Configure",
|
||||
"type": "shell",
|
||||
"command": "${workspaceFolder}/configure",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/b"
|
||||
},
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"problemMatcher": ["$gcc"],
|
||||
"dependsOn": ["Create Build Directory"],
|
||||
"detail": "Runs the configure script to prepare the build environment."
|
||||
},
|
||||
{
|
||||
"label": "Build",
|
||||
"label": "build-salmanoff",
|
||||
"type": "shell",
|
||||
"command": "make",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/b"
|
||||
},
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"problemMatcher": ["$gcc"],
|
||||
"dependsOn": ["Configure"],
|
||||
"detail": "Builds the project using make."
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "shared",
|
||||
"showReuseMessage": true,
|
||||
"clear": false
|
||||
},
|
||||
"problemMatcher": [
|
||||
"$gcc"
|
||||
],
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/b"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "clean",
|
||||
"label": "clean-salmanoff",
|
||||
"type": "shell",
|
||||
"command": "make clean",
|
||||
"group": "build",
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "shared",
|
||||
"showReuseMessage": true,
|
||||
"clear": false
|
||||
},
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/b"
|
||||
},
|
||||
"group": {
|
||||
"kind": "none"
|
||||
},
|
||||
"problemMatcher": [],
|
||||
"detail": "Cleans the build artifacts."
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "test",
|
||||
"label": "rebuild-salmanoff",
|
||||
"type": "shell",
|
||||
"command": "make test",
|
||||
"command": "make clean && make",
|
||||
"group": "build",
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "shared",
|
||||
"showReuseMessage": true,
|
||||
"clear": false
|
||||
},
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/b"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "run-salmanoff-help",
|
||||
"type": "shell",
|
||||
"command": "./salmanoff --help",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "shared",
|
||||
"showReuseMessage": true,
|
||||
"clear": false
|
||||
},
|
||||
"group": {
|
||||
"kind": "test",
|
||||
"isDefault": true
|
||||
},
|
||||
"problemMatcher": ["$gcc"],
|
||||
"detail": "Runs the tests."
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/b"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user