qcenv.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Watchpoint Command (3 of 3)
The Watchpoint command causes execution to pause at the
line on which an expression becomes true. To create a
watchpoint:
 
  ■ Type the watchpoint expression in the text box
  ■ Select <Add/Delete>
  ■ Start or continue execution
  ■ A dialog box appears when the expression becomes true
 
QuickC checks each watchpoint expression when you add it
and notifies you if it is illegal. If the expression
includes a local variable, ignore the message. Until you
trace into the function that defines the variable, QuickC
assumes it is undefined.
Watchpoint Expressions
 
A watchpoint expression consists of base-type variables
(integer, real, pointer) and constants combined with
  ■  Arithmetic operators (+ - * / %)
  ■  Relational operators ( == != > >= < <= )
  ■  Bitwise and logical operators (& | ^ && || << >>)
  ■  Parentheses
  ■  The structure-member (.), structure-pointer(->),
     indirection (*), or address-of (&) operators
  ■  The BY, WO, and DW operators, which return the
     byte, word, or doubleword at a given address.
 
Constants are treated as decimal numbers unless they begin
with a leading '0' (octal) or 'x' (hexadecimal).
EXAMPLES:
 
i==100
i==100 || j>10
work.rate * hours >= 1000
 
Once you have created a watchpoint, it remains in effect
until you delete it. To delete a single watchpoint:
 
  1. Select the watchpoint expression to delete from the
     list of current expressions
 
  2. Select <Add/Delete>
 
To delete all watchpoints, select <Clear All>.