Skip to content

Instantly share code, notes, and snippets.

@amantuladhar
Created November 30, 2024 14:08
Show Gist options
  • Save amantuladhar/ee210628d55161ba3046b1ac9ff419a1 to your computer and use it in GitHub Desktop.
Save amantuladhar/ee210628d55161ba3046b1ac9ff419a1 to your computer and use it in GitHub Desktop.
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug Main",
"program": "${workspaceFolder}/zig-out/bin/cici",
"preLaunchTask": "zig build",
"args": [],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug Test",
"program": "${workspaceFolder}/zig-out/bin/test-binary",
"preLaunchTask": "build_test",
"args": [],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal"
}
],
"inputs": [
{
"type": "promptString",
"id": "testFile",
"description": "Test file path",
"default": "src/main.zig"
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "zig build",
"type": "shell",
"command": "zig",
"args": ["build"],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build_test",
"type": "shell",
"command": "zig",
"args": [
"test",
"${input:testFile}",
"--test-no-exec",
"-femit-bin=${workspaceFolder}/zig-out/bin/test-binary"
],
"group": "test"
}
],
"inputs": [
{
"type": "promptString",
"id": "testFile",
"description": "Test file path",
"default": "src/main.zig"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment