GDB - If I have Bugs

From EdWiki

If I have Bugs

  • Okay, so you’ve run it successfully. But you don’t need gdb for that. What if the program isn’t working?
  • Chances are if this is the case, you don’t want to run the program without any stopping, breaking, etc.
  • Otherwise, you’ll just rush past the error and never find the root of the issue.
  • So, you’ll want to step through your code a bit at a time, until you arrive upon the error.
  • This brings us to the next set of commands . . .