Guide agents through debugging Zig programs: GDB/LLDB sessions, interpreting Zig panics and error return traces, std.debug.print logging, debug build configuration, and IDE integration.
| index out of bounds: index N, len M | Slice/array OOB access | | integer overflow | Arithmetic overflow in Debug/ReleaseSafe | | attempt to unwrap null | Optional access .? on null | | reached unreachable code | unreachable executed | | casting... | Invalid enum tag or union access | | integer cast truncated bits | @intCast with value out of range |
The trace shows the exact try chain where the error propagated. Read bottom-up: main → run → openConfig.
Abilità di debug Zig. Da utilizzare durante il debug di programmi Zig con GDB o LLDB, l'interpretazione di errori di runtime Zig, l'utilizzo di std.debug.print per la traccia, la configurazione di build di debug o il debug di programmi Zig in VS Code. Si attiva su query relative al debug di Zig, Zig Panic, zig gdb, zig lldb, std.debug.print, tracce dello stack Zig o tracce di restituzione degli errori Zig. Fonte: mohitmishra786/low-level-dev-skills.