DDD tutorial A GDB Graphical User Interface
DDD Introduction If you find GDB difficult to use, try DDD DDD s GDB but with a Graphical User Interface You can run it in lore from one of the lab machines. First make sure that your file is compiled with the –g option. bash> gcc –g –o rpncalc rpncalc.c Run bash> /p/ddd/bin/ddd Example: bash> /p/ddd/bin/ddd rpncalc You will see the ddd window on the screen.
DDD Window Double click on a line to set a breakpoint and run your program. The lower part of the window allows you to type gdb commands. For example, you can type (gdb) run The best way to learn it is to try it. 20 minutes you spend learning it will save you hours and hours of debug time.