Created
November 30, 2024 14:08
-
-
Save amantuladhar/ee210628d55161ba3046b1ac9ff419a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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