Breakpoints in modelling
Breakpoints when working with models are different from those used in scripts. |
*Breakpoints allow you to pause model execution at a specific point. These breakpoints are used to examine the state of the system, to detect errors, or to verify that certain components are working correctly.
To open the breakpoint editor, go to the settings window and open the list of breakpoints in the "Debug" tab:
Breakpoints can be placed for a model with simulation running. |
To add a breakpoint, select the signal with the left mouse button and click :
The conditions (left) and values (right) are configured in the window for adding points:
-
Condition - defines under which logical condition the breakpoint will be activated. The following conditions are available:
-
>
(greater than) - execution is suspended when the value is greater than the specified value; -
<
(less) - execution is suspended when the value is less than the specified value; -
=
(equal) - execution is suspended when the value is equal to the specified value; -
!=
(not equal) - execution is suspended when the value is not equal to the given value; -
>=
(greater than or equal to) - execution is suspended when the value is greater than or equal to the given value; -
<=
(less than or equal to) - execution is suspended when the value is less than or equal to the specified value.
-
-
Value - specifies a specific value at which the breakpoint will be triggered. Integer and real numbers are supported in the value input field, except for complex and Boolean values. The system will not allow entering invalid values.
If the signal is not selected, the addition window looks like this:
After the breakpoint is added, it will appear in the editor and the signal will be marked with an indicator:
Breakpoints have the following indicators:
-
- breakpoint is switched off;
-
- the breakpoint is switched on but has not triggered;
-
- the breakpoint is switched on and has been triggered.
To add breakpoints to multiple signals at the same time, highlight the signals with Shift pressed:
To delete breakpoints, select the desired breakpoint in the editor and press .