Requirement: The application is in online mode and running. The operating mode is “Debug”.
-
In the editor, open a POU programmed in structured text (ST).
-
Place the cursor in the line where a breakpoint will be set.
-
Click “Debug Toggle Breakpoint” or press the [F9] key.
The line is marked in red and identified by the
symbol (breakpoint enabled). If the program is halted at the breakpoint, then the line is marked by the
symbol (halt at breakpoint). The processing of the program is stopped. This is identified in the status line by the
HALT ON BP
status highlighted in red. -
Click “Debug Start” or press the [F5] key.
The program continues.
-
Set more breakpoints and check the variable values at the break position.
-
Place the cursor in the line where a breakpoint should be removed.
-
Click “Debug Toggle Breakpoint” or press the [F9] key.
The marking disappears. The breakpoint is deleted.
-
See also: ⮫ Toggle Breakpoint