19
A Debugger Feature I'd Like To See
(ceesstuff.github.io)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Turns out it exists in gdb, although in a limited scope!
Compile with
g++ -gand rungdb a.outSee here for documentation
Many debuggers have a set next statement kind type of functionality, but with gdb you can script it so that it performs the jump automatically, like the article suggests:
That's pretty cool. I always wondered why gdb has a scripting interface, now I'm curious what other cool user scripts one can do through it.