Ever found yourself "printfdebugging"? This debugger (not some blasphemous gdb front-end) takes this experience to a new level.
It inserts a breakpoint at every line containing printf (even in comments!)
Caution
My flawless debugger only supports non-PIE executables on Linux
Make sure you have the following installed:
- Zig 0.15.2
libdwfrom elfutils
Then run
zig build -Dcpu=native -Doptimize=ReleaseSafe
to compile the project.
To just get a feel of how this thing absolutely bangs, let's printfdebug a sample program:
gcc debugee.c -o debugee -g -no-pie
zig build run -- debugee
# ✨ your turn to printf debug 💫
There is only one command - c for continue! Don't be fooled by a gdb like propmt, it's not interactive (it's time to grow up).
If there are any, idk, I coded this in several evenings for fun. (˵ •̀ ᴗ - ˵ )
man elfman libelf- Introduction to the DWARF debugging format
- DWARF Debugging Information Format Version 5
- Claude for generating a
libdwexample