Setting break points. The F2 key is used to turn on or turn off (toggle) a break point at the cursor position if the program has already been compiled. You can set a break point if the program is paused at a break point. You can also set a break point in a program that is running at full speed. This will cause the program to break if the execution thread hits your break point.

Watch expressions. A watch expression is a C expression that is evaluated on command in the watch window. An expression is basically any type of C formula that can include operators, variables and function calls, but not statements that require multiple lines such as for or switch. You can have a list of watch expressions in the watch window. If you are single-stepping, then they are all evaluated on each step. You can also com- mand the watch expression to be evaluated by using the <Ctrl-U>command. When a watch expression is evaluated at a break point, it is evaluated as if the statement was at the beginning of the function where you are single-stepping. If your program is running you can also evaluate watch expressions with a <Ctrl-U>if your program has a run- watch() command that is frequently executed. In this case, only expressions involv- ing global variables can be evaluated, and the expression is evaluated as if it were in a separate function with no local variables.

User’s Manual

43

Page 47
Image 47
Digi BL1800 user manual User’s Manual