2025-01-15 17:38:21 -05:00
2025-02-15 12:31:04 -05:00
2025-02-15 12:31:04 -05:00
2025-02-15 12:31:04 -05:00
2025-01-15 17:38:21 -05:00

Configuring CLion for debugging

Use https://github.com/asdf-vm/asdf with https://github.com/allemangd/asdf-zig for the versioned zig master in .tool-versions.

Build ZLS with that zig and point ZigBrains to it.

Custom Build Application configurations:

  • zig-shape uses custom target zig build -fincremental and executes zig-out/bin/zig-shape.
  • exe-unit-tests uses custom target zig build -fincremental build-tests and executes zig-out/dev/exe-unit-tests
  • lib-unit-tests uses custom target zig build -fincremental build-tests and executes zig-out/dev/lib-unit-tests

Then native "build", "run", and "debug" buttons will work.

Optionally create a "clean" target that executes rm -r .zig-cache zig-out

Switching between debug and release build is more difficult. Probably easier to run release builds only via CLI, like zig build --release=fast or zig build --release=fast test.

Description
No description provided
Readme 2.4 MiB
Languages
HTML 56.9%
Zig 42.6%
Python 0.5%