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.
Zig-Debugging-Fähigkeit. Verwenden Sie diese Option beim Debuggen von Zig-Programmen mit GDB oder LLDB, beim Interpretieren von Zig-Laufzeitpaniken, beim Verwenden von std.debug.print zur Ablaufverfolgung, beim Konfigurieren von Debug-Builds oder beim Debuggen von Zig-Programmen in VS-Code. Wird bei Abfragen zum Debuggen von Zig, Zig Panics, Zig GDB, Zig LLDB, std.debug.print, Zig Stack Traces oder Zig Error Return Traces aktiviert. Quelle: mohitmishra786/low-level-dev-skills.