[misc] Get VSCode running / debugging working

I spent some time getting VSCode debugging working. Now I can use VSCode
on windows to work on jsix in Linux (WSL) and launch and debug it within
QEMU. So many layers but it works pretty nicely!
This commit is contained in:
Justin C. Miller
2023-07-07 16:19:47 -07:00
parent 2b3c276f33
commit 0dc86f2a0d
3 changed files with 88 additions and 0 deletions

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

@@ -0,0 +1,41 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Ninja",
"type": "shell",
"command": "source ${workspaceFolder}/venv/bin/activate.fish; ninja",
"detail": "Build the project",
"options": {
"cwd": "${workspaceFolder}/build"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "Run QEMU",
"command": "./qemu.sh",
"args": [ "--no-build", "--kvm" ],
"dependsOn": ["Ninja"],
"options": {
"cwd": "${workspaceFolder}"
},
},
{
"label": "clean",
"command": "${workspaceFolder}/venv/bin/ninja",
"options": {
"cwd": "${workspaceFolder}/build"
},
"args": [
"-t",
"clean"
]
}
]
}