This window tries to display the values that may be of interest from each line of the source code that is currently being executed.
For instance, for the following source lines:
|
|
Here execution is suspended in the ‘TranslateMessage’ source line (shown in yellow). There is a breakpoint three lines earlier. |
At this stop in execution, the variable window will display the following:
|
|
· The value of ghwndMain is shown · The value of ghAccel is shown · The structure tagMsg has the address 0x16065c. Aggregate values are not shown and are only displayed as {...} · The function results are indicated by ‘returns’ and a symbol followed by a (). |
The preceding line and the current lines are scanned for identifiers, and the values of all such identifiers are displayed. In addition, the return values of all functions called are shown. This is very simple: Wedit’s debugger scans the current line and the preceding line, eliminates comments and character strings from them, and scans all identifiers that it can find. The debugger and the results shown evaluate this list. In addition, each time a function call is found, its results will be stored and displayed in the ‘Auto’ window.