

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.
HOW TO USE SYNPLIFY PRO 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.
HOW TO USE SYNPLIFY PRO 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. Technical support via the Service Portal is not available to University students with the exception of those authorized through the Xilinx University Program.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.Technical support via the Service Portal is not available to all customers.

HOW TO USE SYNPLIFY PRO SOFTWARE
