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.
Compétence de débogage Zig. À utiliser lors du débogage de programmes Zig avec GDB ou LLDB, en interprétant les paniques d'exécution de Zig, en utilisant std.debug.print pour le traçage, la configuration des versions de débogage ou le débogage de programmes Zig dans VS Code. S'active sur les requêtes concernant le débogage de Zig, les paniques Zig, zig gdb, zig lldb, std.debug.print, les traces de pile Zig ou les traces de retour d'erreur Zig. Source : mohitmishra786/low-level-dev-skills.