Chapter Contents |
Previous |
Next |
Debugging C++ Programs |
A typical C++ program contains initialization functions
in each compilation at program startup. These functions are called at program
startup to initialize static and extern data defined in that compilation.
If you want to debug one of these initialization functions, you can set a
breakpoint on _ _init
(i.e., break _ _init entry
). You will then be presented with a
numbered list of initialization functions, one for each compilation using
the sname for that compilation. See the discussion of the sname option in
Chapter 3, "Translator Options," of theSAS/C C++ Development System User's Guide for more information.
Select the initialization function that you want to debug. See the section Overloaded Function Names for information
on how to select an overloaded function from the list.
Bypassing Initialization Functions |
go
command
Break main entry
command in your debugger profile and issue a
go
command (this causes debugging
to begin at the
main
function)
Runto main entry
command from the command line (this causes your program
to advance to
main
).
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.