[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:
41
.vscode/tasks.json
vendored
Normal file
41
.vscode/tasks.json
vendored
Normal 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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user