# Enable debug build for Zig std library

**URL:** <https://ziggit.dev/t/enable-debug-build-for-zig-std-library/14344>\
**Category:** Help\
**Tags:** build-system\
**Created:** [February 16, 2026, 2:28am UTC](https://ziggit.dev/t/enable-debug-build-for-zig-std-library/14344 "2026-02-16T02:28:58Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jumpnbrownweasel](https://ziggit.dev/user_avatar/ziggit.dev/jumpnbrownweasel/32/263_2.png) [@jumpnbrownweasel](https://ziggit.dev/u/jumpnbrownweasel)\
**Post date:** [February 16, 2026, 5:07am UTC](https://ziggit.dev/t/enable-debug-build-for-zig-std-library/14344/5 "2026-02-16T05:07:23Z")

</div>

I haven’t experienced this problem myself, but I think I’ve seen in other threads that the new non-llvm backend, which is used by default in default/debug mode, is not compatible with the debuggers. If you want to try it, you can add `-fllvm` when running `build-exe` and then trying debugging with lldb. I could be wrong.

Or to use `zig build` see this note in the other thread:

> [@Zig Debugging with LLDB](https://ziggit.dev/t/zig-debugging-with-lldb/3931/11):
>
> It might be necessary to add .use\_llvm = true to const exe = b.addExecutable to see symbols when using a newer Zig version.

---

_[View the full topic](https://ziggit.dev/t/enable-debug-build-for-zig-std-library/14344)._
