Displays Overview

Display is a variable or expression, the value of which in every process is watched during program execution in debug mode. The expression you specify by setting a display is added to the list of watched expressions in the Watch window. List of the set displays you can see in the Expressions tab of the Debug objects dialog. If you are particularly interested how value of some variable changes during execution but donít want the program to stop when the value changes you can add this variable to the list of watched variables by setting display. Display can be any syntactically correct mpC expression but it mustnít contain function calls, communications and network type conversions, as well as it mustnít cause side effects.

Like a breakpoint or watchpoint, a display is set at some line in the current source file. If the specified expression contains local variables you should set the display within the scope of these variables, i.e. for example within the function in which the local variables are defined. Otherwise the display will be ignored. Note that if you want to know value of a variable defined within some block and there is a variable with the same identifier defined in a block containing this block then the value of the latter variable will be evaluated independently of the location where you set the display.

If some process doesnít reach scope of some variable from the list of watched expressions when the whole program stops, then in the cell in the Watch window, which displays value of this variable on this processor, error message is displayed.

This chapter explains how to manage displays. The following topics are discussed: