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 <your-program> Example: bash> /p/ddd/bin/ddd rpncalc

This is the end of the preview.
Sign up
to
access the rest of the document.

Unformatted text preview: • 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 5 6 + • 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....
View
Full Document