User`s manual

Dynamic C Users Manual digi.com 95
Example Open Samples\Demo1.c. If you are using DC 9, place the cursor on the
word “for,” then press F2 to insert a breakpoint. Otherwise, press F5 to compile
the program before setting the breakpoint. Now press F9. Every time you press
F9 program execution will stop when it hits the start of the for loop. From here
you can single step or look at a variety of information through debug windows.
For example, let us say there is a problem when you get to the limit of a for
loop. You can use the Evaluate Expressions dialog to set the looping variable to
a value that brings program execution to the exact spot that you want, as shown
in this screenshot:
Figure 6.1 Altering the looping variable when stopped at a breakpoint