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!
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
// 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"
|
|
]
|
|
}
|
|
]
|
|
} |