Skip to content

Instantly share code, notes, and snippets.

@andrewrk
andrewrk / build.zig
Created February 20, 2023 16:20
sprinkling a little zig into a C project to help with debugging
const std = @import("std");
pub fn build(b: *std.Build) void {
// Standard target options allows the person running `zig build` to choose
// what target to build for. Here we do not override the defaults, which
// means any target is allowed, and the default is native. Other options
// for restricting supported target set are available.
const target = b.standardTargetOptions(.{});
// Standard optimization options allow the person running `zig build` to select
@mfelsche
mfelsche / gist:ef4dd9e104a8127e820b6e4e20c88b2c
Created January 25, 2019 05:04
Setup pony debugging with vscode
The basic steps are here
```
install https://marketplace.visualstudio.com/items?itemName=npruehs.pony <- for syntax colors
install https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb <- for debugging
#vscode settings should have :
"debug.allowBreakpointsEverywhere": true
#(for example ) create an ./examples/.vscode/launch.json file under the pony examples directory with:
{