DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using the command line interface of debug

Single-process debugging

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(1); -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.


Next topic: Session 1: why is my program in an infinite loop?
Previous topic: The program traverse

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004