User`s manual

Dynamic C Users Manual digi.com 293
14.2.8 Window Menu
Click the menu title or press <Alt+W> to display the Window menu.
You can choose to minimize, restore or close all
open windows or just the open debug window or
just the open editor windows. The second group
of items is a set of standard Windows com-
mands that allow the application windows to be
arranged in an orderly way.
The Compiler Messages option is a toggle for
displaying that window. This is only available if
an error or warning occurred during compila-
tion.
The Debug Windows option opens a secondary
menu, whose items are toggles for displaying
the like-named debug windows. You can scroll
these windows to view larger portions of data,
or copy information from these windows and
paste the information as text anywhere. More
information is given below for each window.
At the bottom of the Window menu is a list of
current windows, including source code windows. Click on one of these items to bring its window to the
front, i.e., make it the active window.
Watch
Select Watch to activate or deactivate the Watches window. The
Add Watch command on the Inspect
menu will do this too. The Watches window displays watch expressions whenever Dynamic C evalu-
ates watch expressions. Starting with Dynamic C 9, a watch expression for a structure will automati-
cally include all members of the structure. Previous versions of Dynamic C required each struct
member to be added as a separate watch expression.
Keep in mind that when single stepping in assembly, the value of the watch expression may not be
valid for variables located on the stack (all auto variables). This is because the debug kernel does not
keep track of the pushes and pops that occur on the stack, and since watches of stack variables only
make sense in the context of the pushes and pops that have happened, they will not always be accurate
when assembly code is being single stepped.