Setting a Breakpoint
Description
Breakpoints in the model tree can be placed in the body of a procedure or function, or on the definition of an identifier, by opening the corresponding attribute window and set a breakpoint, or by setting a breakpoint directly on the corresponding node in the model explorer.
To set a breakpoint in the attribute window of a procedure, function, or defined identifier:
Open the model explorer.
Activate the debugger.
Open the attribute window of the procedure, function, or defined identifier.
In the attribute window you can either:
Select the line where you want to insert the breakpoint (in the body attribute in procedure or function, in the definition attribute in defined identifier).
Select Breakpoints – Insert/Remove from the Debugger menu.
Or:
Click the right-mouse button in the yellow margin at the left side of the line where you want to position the breakpoint.
From the popup menu, select Insert Breakpoint.
To set a breakpoint on a node in the model explorer:
Open the model explorer.
Activate the debugger.
Select the node on which you want to set the breakpoint.
Select Breakpoint – Insert/Remove from the Debugger menu.
Note
After you have set a breakpoint this is made visible by a red dot in the left margin of the selected source line and the red color of the node in the model tree.
When you specify a breakpoint on a node in the model explorer, the breakpoint will be added to the first statement contained in the body of the selected procedure or function, or to the definition attribute in case of a defined identifier.
How to …