Chapter Contents

Previous

Next
Debugging C++ Programs

Setting Breakpoints in Dynamically Loaded C++ Modules

The debugger keeps track of load modules that contain C++ code as they are loaded and unloaded. When you specify a function in a debugger command, the debugger first looks for the function in the current load module. If it fails to find it there, the debugger searches the list of modules that have been loaded. If you want to set a breakpoint in a module that has not yet been loaded, you can set a breakpoint on entry to _dynamn . Then, when you reach this breakpoint, set the desired breakpoint in the module. Note, however, that _dynamn is called only after constructors for static and extern objects in the loaded module have been run.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.