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.
지그 디버깅 스킬. GDB 또는 LLDB로 Zig 프로그램을 디버깅하고, Zig 런타임 패닉을 해석하고, 추적을 위해 std.debug.print를 사용하고, 디버그 빌드를 구성하고, VS Code에서 Zig 프로그램을 디버깅할 때 사용합니다. Zig, Zig 패닉, zig gdb, zig lldb, std.debug.print, Zig 스택 추적 또는 Zig 오류 반환 추적 디버깅에 대한 쿼리에서 활성화됩니다. 출처: mohitmishra786/low-level-dev-skills.