Hacker News new | ask | show | jobs
by mark_undoio 585 days ago
You could also use GDB's Dynamic Printf (https://sourceware.org/gdb/current/onlinedocs/gdb.html/Dynam...) to do the logging directly from GDB.

Essentially you set it like a breakpoint (attaching a printf style string to a code location) and then just "continue" until you've gathered what you want.

1 comments

Oh sweet. I didn't know about that. I will be adding that to my toolbox.