Creating and Using Framework/AC++ Modules

Notes on Using ddd

Because of the way I/O is directed within ddd, I have found that it is easiest to use the run.tcl file you created in the last step above. Start up ddd with the command ddd bin/IRIX6/exename & Set breakes in the source window with the right mouse button. The file pull-down menu allows you to set breaks in other sources. To start debugging go to the Program pull-down menu and select Run..., type run.tcl under the box that says Run with Arguments hit (cr) and you will see the contents of standard out go to the commands window when it stops with a gdb prompt you can start debugging. You can use the gdb command line interface but I prefer to use the gui on the source window since I don't want to memorize those commands. It's pretty obvious what the step/next and continue buttons do but if you want to print something you have to errase the word main then type in the name of the thing you want to print or display and then hit the appropriate button. Remeber that if the variable that you have is a pointer and you type in the pointer name by itself it will just echo an address. What you are probably more interested in is the contents of the thing it is pointing to. In order to see this with the debugger type *pointer_name then hit print or display.

Internet Address: sexton@fnal.gov
Office Phone: 840-4974