|
|
This topic covers most of what you will need to know to debug an ordinary, single-process C or C++ program. The samples we use here are C programs, and it is assumed that the programs are compiled with the -g option to cc(CP); -g provides the debugger with information that it wouldn't otherwise have (the names of local variables or the line numbers where it can set breakpoints, for example). debug can still be useful on programs compiled without -g but is not as informative (see ``Session 9: What Can I Do Without -g'').
Now you are ready to begin the tutorial. If you are using a graphics terminal, you can use the Command Line debugger by typing debug -ic. If you want to use the graphical interface to the debugger, see the tutorial in ``Using the graphical interface of debug''. The files for Session 1 are found under /usr/ccs/lib/tutorial.