Debug $. Records

The compile-time option DEBUG is available to facilitate the debugging and development of the PATCH utility. Various $. records exist that can be used only if the PATCH utility is compiled with $ SET DEBUG. These additional $. records allow the flow of control through many critical procedures and the values of many important variables to be traced at will. These options are especially useful when the PATCH utility is run interactively through a remote terminal.

The following syntax diagrams show the $. options that can be used if the PATCH utility has been compiled with $ SET DEBUG in the symbolic. The text following the diagrams give the syntax and an explanation for each option. All these options (except $.CANDE) can be used in WFL jobs.

<debug option>

       ┌◄─────────────────────────────────────────────┐
       │             ┌◄─────────────────────────────┐ │
── $. ─┴─┬─────────┬─┴─┬─<debug value option>─────┬─┴─┴────────────────►
         ├─ SET ───┤   ├─<debug immediate option>─┤
         ├─ RESET ─┤   └─<debug Boolean option>───┘
         └─ POP ───┘
►─┬─────────────────┬──────────────────────────────────────────────────┤
  └─<equate option>─┘

<debug value option>

──<bug option>─────────────────────────────────────────────────────────┤

<debug immediate option>

──┬─<discard option>─┬─────────────────────────────────────────────────┤
  └─<end option>─────┘

<debug Boolean option>

──┬─<pdump option>─┬───────────────────────────────────────────────────┤
  └─<CANDE option>─┘