Function: In the dialog, you define the settings for a new breakpoint or data breakpoint. It is identical to the “Breakpoint Properties” dialog which is used in the “Breakpoints” view.
Call:
-
“Debug New Breakpoint”
-
“Debug New Data Breakpoint”
Requirement: The application is in online mode.
Tab 'Condition'
The dialog defines the requirements for which program processing should halt at a breakpoint.




NOTICE

Using conditional breakpoints slows down code execution, even when the condition does
not yield TRUE
.
Conditional breakpoints required a CODESYS runtime >= V3.5.4.0.
“Break only when 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, when true” |
|
Tab 'Data'
Requirement: This is used for the properties of a data breakpoint.
The function of data breakpoints depends on the target system. Currently, data breakpoints are possible only with the CODESYS Control Win V3.
On the tab, the variable or memory address is specified for which the data breakpoint is set or will be set. |
|
“Break execution when the value of the variable or address changes” |
Examples: variable: |
“Size” |
Number of bytes of the specified variable or memory address above which should be monitored for changes. When a new variable or memory address is specified, a value that matches the data type or memory is set automatically at first. Note: The “Size” and quantity depend on the target system. For the CODESYS Control Win V3, a maximum of four data breakpoints with a maximum size of 8 bytes can be defined. Example: Example: |
Tab 'Execution Point Settings'
Here. an existing breakpoint or data breakpoint can be converted into an execution point.
“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” option in “Project Settings Compile Options”. CODESYS can print variables with the placeholder {variable name} in the message text. |
Tab 'Location'
Requirement: The command “New breakpoint” was selected.
“POU” |
POU of the active application where the breakpoint is 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 have to define whether the breakpoint should be set in the implementation or in an instance.
|
“Enable breakpoint immediately” |
|