Skip to content

Jujumba/printfdebugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Printfdebugger (literaly)

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

Building

Make sure you have the following installed:

  • Zig 0.15.2
  • libdw from elfutils

Then run

zig build -Dcpu=native -Doptimize=ReleaseSafe

to compile the project.

Running example

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 💫

Usage

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).

Issues

If there are any, idk, I coded this in several evenings for fun. (˵ •̀ ᴗ - ˵ )

References

About

no, we have RAD debugger at home

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published