Runtime Checking in a Debugging Session

See Also 

Runtime checking (RTC) allows you to automatically detect runtime errors in an application during the development phase. You can use runtime checking while debugging your program to display access error, memory usage, and memory leak information.

To use runtime checking while debugging:

  1. Select the project and choose Advanced > Runtime Checking > Configure. In the Project Properties dialog box, set the options, including Enable RTC While Debugging, and click OK. For information about the options, see Project Properties Dialog Box: Runtime Checking.
  2. Start your debugging session by right-clicking the project and choosing Debug Project.
  3. The Runtime Checking window, with tabs for Access Errors, Memory Usage, and Memory Leaks opens in the Output window area the first time an access error is detected. You can open the Runtime Checking window by choosing Window > Debugging > Runtime Checking.
  4. Program execution stops each time an access error is detected unless you set the Do not stop on access errors option when you defined the runtime checking configuration for the project (see step 1). If the error is not a fatal error, you can continue execution of the program by clicking Continue in the tool bar. The program continues to the next error or breakpoint, whichever is detected first.
  5. You can change the runtime checking options for the project during the debugging session, and the changes will take effect immediately as appropriate.
See Also
Collecting a Runtime Checking Experiment

Legal Notices