Dialog: New Breakpoint
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:
Command:
Command:
Requirement: The application is in online mode.
Tab: Condition
The dialog defines the requirements under which the program processing should halt at a breakpoint.
Important
Using conditional breakpoints slows down the code execution, even when the condition does not yield TRUE
.
Tip
Conditional breakpoints require a CODESYS runtime system >= 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 as a result prevent other tasks, which also use the same POU, 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 reached as often as defined in the following (type in the required hit count or select it from the number list):
|
Break, when true |
Examples: |
Tab: Data
Requirement: This is used for the properties of a "data breakpoint".
Tip
The function of the data breakpoints depends on the target system. Currently, data breakpoints are possible only with the CODESYS Control Win.
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: Address: |
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 which matches the data type or memory is automatically set first of all. Note: The Size and count depend on the target system. For the CODESYS Control Win, a maximum of 4 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 which 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 . CODESYS can output variables with the |
Tab: Location
Requirement: The New Breakpoint command has been was executed.
POU | POU of the active application where the breakpoint is positioned |
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 |
|
For more information, see: Using Breakpoints