ILE C/C++ Programmer's Guide


Chapter 12. Using Watches to Aid Debugging

Use a watch condition to monitor changes in the current value of a variable or an expression which determines the address of a storage location. Setting watch conditions is similar to setting conditional breakpoints, with one important difference:

The debugger watches a variable through the content of a storage address, computed at the time the watch condition is set. When the content at the storage address is changed from the value it had when the watch condition was set or when the last watch condition occurred, a breakpoint is set, and the program stops.

Note:
After a watch condition has been registered, the new content at the watched storage location is saved as the new current value of the corresponding variable. The next watch condition will be registered if the new content at the watched storage location changes subsequently.

This chapter describes:


[ Top of Page | Previous Page | Next Page | Table of Contents ]