Using SoftBench Debugger
Debugging C++ Programs
However, if your program contains static objects, the constructors for those objects must be invoked before main(). By the time the debugger pauses in main(), the constructors have already completed.
If you need to debug these constructors, you must tell DDE to pause before calling them. This can be accomplished by executing the DDE command "property system
When you pause at the first instruction, DDE does not yet realize you are executing a C++ program. This can result in any C++ breakpoints being lost. If you want to retain your C++ breakpoints across executions, execute the DDE command "prop lang c++" before rerunning your program. This gives DDE the information it needs to retain your breakpoints.
When you finish debugging your static constructors, issue "prop sys
226 | Chapter 7 |