Breakpoints are commonly used for debugging programs. CODESYS supports breakpoints in all IEC editors.
You can set breakpoints at specific positions in the program to force an execution stop and to monitor variable values. You can set special "data breakpoints" to halt program execution when the value of a specific variable changes.
The halt at a breakpoint or data breakpoint can be linked to additional conditions. You can also redefine breakpoints and data breakpoints as "execution points" where specific code is executed instead of stopping the program.
The “Breakpoints” view provides an overview of all defined breakpoints. It also includes additional commands for processing batch changes to multiple breakpoints.
In the editor, the following symbols identify the status of a breakpoint or execution point:
-
: The breakpoint is enabled.
-
: The breakpoint is disabled.
-
: The breakpoint is set in another instance of the POU open in the editor.
-
: The program halts at the breakpoint.
-
: The breakpoint with condition is enabled.
-
: The breakpoint with condition is disabled.
-
: The execution point is enabled.
-
: The execution point is disabled.
-
: The execution point with condition is enabled.
-
: The execution point with condition is disabled.
-
: The data breakpoint is enabled.
-
: The data breakpoint is disabled.
-
: The program halts at the data breakpoint.
-
: The data execution point is enabled.
-
: The data execution point is disabled.
-
: The program halts at the data execution point.
-
: The data execution point with condition is enabled.
-
: The data breakpoint with condition is enabled.
For more information, see: ⮫ “Commands: Breakpoints ”
-
See also: ⮫ Call Stack
-
See also: ⮫ Toggle Breakpoint
-
See also: ⮫ New Breakpoint
-
See also: ⮫ New Breakpoint
-
Data breakpoints
-
Breakpoints in applications with multiple tasks
-
Setting a single breakpoint (example in ST editor)
-
Defining a breakpoint condition (example in ST editor)
-
Defining an execution point (example in ST editor)
-
Setting a data breakpoint