Possible positions for breakpoints are in principle the positions where the values of variables can change (instructions), where the program branches, or where another box is called.
Possible breakpoint positions
-
On the entire network
Causes the breakpoint to be set at the first possible position in the network
-
On a box when the box contains an assignment
Not possible with operator boxes (example;
ADD
,DIV
) -
On assignments
-
At the end of the box at the position of the return to the calling box
In online mode, an empty network automatically opens here. It is indicated by "RET" in place of a network number.




NOTICE

Currently, you cannot directly set a breakpoint on the first box in the network. However, if you set a breakpoint on the entire network, then in online mode this breakpoint indication is automatically transferred to the first box.




NOTICE

Breakpoints in methods: CODESYS automatically sets a breakpoint in all methods which can be called. Therefore, if a method managed by an interface is called, then breakpoints are set in all methods which occur in function blocks that implement this interface as well as in all derived function blocks that use the method. If a method is called by a pointer to a function block, then CODESYS sets the breakpoints in the method of the function block and in all derived function blocks that use the method.