
Reasons include:Īn error occurred as the expression was being evaluated, as in the previous example. Hover over the refresh icon or see the Value column for the reason the expression wasn't evaluated. However, you may not want or be able to reevaluate the expression, depending on why the value wasn't evaluated. The debugger tries to reevaluate the expression. To refresh the value, select the refresh icon, or press the spacebar. The refresh icon indicates an error or a value that is out of date. Refresh watch valuesĪ refresh icon (circular arrow) might appear in the Watch window when an expression is evaluated. You can access both options by selecting the buttons in the toolbar above the watch window. You can also toggle property names and filter out non-pinned properties when viewing the object’s property list in the Watch window. To unpin a property, select the pin icon again or select the Unpin Member as Favorite option in the context menu. This bubbles up that property to the top of the object’s property list, and the property name and value is displayed in the Value column. To use this tool, hover over a property and select the pin icon that appears or right-click and select the Pin Member as Favorite option in the resulting context menu.

You can quickly inspect objects by their properties in the Watch window with the Pinnable Properties tool. Allowing other threads to run temporarily can have unexpected effects on the state of your app, and the debugger may ignore events such as breakpoints and exceptions on those threads.
Vce designer stream read error code#
Evaluating the code requires other threads in your app to run temporarily, but since you are in break mode, all threads in your app are usually stopped. This icon means the debugger doesn't evaluate the expression because of a potential cross-thread dependency. For example, a typo in the preceding expression produces this error in the Watch window:Ī circle with two wavy lines icon may appear in the Watch window. If an expression has a syntax error, expect the same compiler error as in the code editor. The rules for evaluating expressions in the Watch window are generally the same as the rules for evaluating expressions in the code language. You can observe any valid expression recognized by the debugger in a Watch window.įor example, for the code in the preceding section, you can get the average of the three values by entering (a + b + c) / 3 in the Watch window: For more information, see Pseudovariables. You can add register names and variable names using $ or to the Name in the Watch window. If you have to qualify the context, use the context operator (C++) syntax in the Name in the Watch window. The context is the function, source file, or module where a variable is located.


You may need to qualify the context of a variable name, or an expression that uses a variable name. The variable values in the Watch window change as you iterate through the for loop. Do the same for b and c.Ĭontinue debugging by selecting Debug > Step Into or pressing F11 as needed to advance. In the Watch window, select an empty row, and type variable a.
Vce designer stream read error windows#
You can open additional Watch windows by selecting windows 2, 3, or 4. Open a Watch window by selecting Debug > Windows > Watch > Watch 1, or pressing Ctrl+ Alt+ W > 1. Start debugging by selecting the green Start arrow or Debug > Start Debugging, or press F5. You can open more than one Watch window, and observe more than one variable in a Watch window.įor example, to set a watch on the values of a, b, and c in the following code: int main()įor (int i = 0 i Toggle Breakpoint, or pressing F9.

If this is the first time that you've tried to debug code, you may want to read Debugging for absolute beginners and Debugging techniques and tools before going through this article.
