Add basic debug/build config for VS Code. Works in WSL (with CodeLLDB extension installed)

This commit is contained in:
Henrik Rydgård 2024-07-18 12:58:53 +02:00
parent a76afa926d
commit 77ad24d8d4
2 changed files with 39 additions and 0 deletions

16
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,16 @@
{
// 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": [
{
"type": "lldb",
"request": "launch",
"name": "Debug",
"program": "build/PPSSPPSDL",
"args": [],
"cwd": "${workspaceFolder}"
}
]
}

23
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,23 @@
{
"tasks": [
{
"type": "shell",
"label": "C/C++: build",
"command": "./b.sh",
"args": [
"--debug",
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "compiler: /usr/bin/g++"
},
]
}