Skip to content

Instantly share code, notes, and snippets.

@debemdeboas
Created July 11, 2024 18:26
Show Gist options
  • Save debemdeboas/0448650f6982eea18f31cac695fae73c to your computer and use it in GitHub Desktop.
Save debemdeboas/0448650f6982eea18f31cac695fae73c to your computer and use it in GitHub Desktop.
VSCode + Zig
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/zig-out/bin/...",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "build",
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "zig",
"args": [
"build"
],
"group": {
"kind": "build",
"isDefault": true
},
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment