Ptrace

How Debuggers Work • Sy Brand • GOTO 2025

How Debuggers Work • Sy Brand • GOTO 2025

Sy Brand demystifies the internal workings of native code debuggers, explaining how core features like breakpoints, stepping, stack unwinding, and variable inspection are implemented using operating system primitives, debug information formats like DWARF, and low-level hardware features.

Building a Debugger • Sy Brand & Tim Misiak

Building a Debugger • Sy Brand & Tim Misiak

Sy Brand, author of "Building a Debugger," and Tim Misiak explore how implementing a debugger is one of the most effective ways to gain a deep understanding of operating systems, compilers, and hardware. They delve into the unexpected complexities of core features like stack unwinding and code stepping, the challenges posed by legacy APIs like ptrace and debug formats like DWARF, and the future of debugging with advancements in time travel debugging and tools for optimized code.