Dialog ‘Breakpoint Properties’¶
Function: This dialog is used for displaying and changing the properties of the selected breakpoint.
Call: Button in the Breakpoints view
Requirement: The application is in online mode.
Tab ‘Condition’
This dialog defines the requirements for which program processing should halt at a breakpoint.
Only break if the breakpoint is hit in one of the following tasks |
For example, you can define a single debug task and also prevent other tasks that use the same block from being affected when debugging. |
Hit Count | Break always: The program always halts at this breakpoint. Alternative: The program halts at the breakpoint when the breakpoint has been hit as often as defined in the following (type in the required hit count or select it from the number list):
|
Break, if true | With CODESYS runtime system >= 3.5.4.0, you can use conditional breakpoints. The condition can be defined only in online mode.
|
Attention
Using conditional breakpoints slows down code execution, even when the condition does not yield TRUE.
Tab ‘Data’
In this tab, the variable for which a data breakpoint is set is displayed and it can be modified. | |
Interrupt execution if the value of the specified variable changes: |
|
Tab ‘Execution point settings’
Execution point (execution does not stop at breakpoint) |
|
Execute the following code | Code that is executed when the execution point is reached. Looping structures (For, While) and IF or CASE expressions are not possible. |
Print a message in the device log | This option is available only when you select the Enable logging in breakpoints check box in . CODESYS can print variables with the placeholder {variable name} in the message text. |
Tab ‘Location’
POU | Block of the active application where the breakpoint should be placed. |
Position | Position of the breakpoint in the POU. Entry as row and column numbers (text editor) or as network or element numbers. |
Instances: | In the case of function blocks, you must define whether the breakpoint should be set in the implementation or in an instance.
|
See also