Zig Debugging with LLDB

Handy tip when trying to debug tests: if the test binary crashes it will print the command that you could paste into a debugger. And one way to make it crash is to use @breakpoint() somewhere. Then you kill 2 birds with 1 stone because the debugger will stop at your breakpoint.

3 Likes