You are here: Core Reference > Coding > Logic > Debugging an ST Program or ST Library

Debugging an ST Program

You can use the Debug feature to debug your ST program. The debugging feature allows you to check that your program provides the expected Logic functions. It is particularly useful when you need to check separate parts of large programs—you can step through each section of the program and view its effect on the variables. To view the variables, you need to use the Variables Window. This helps you to determine which parts of your ST programs are not working as intended (if any).

NOTE: A Logic program can only be debugged by one user at a time. When a user has a Logic program in debug mode, it cannot be executed manually or by schedules.

There are two ways to start the debugging process:

Typically, you will need to use the debugging feature to debug separate sections of an ST program. For example, if a complex ST program is not returning the values you expected, you will need to debug each calculation within the program separately—this allows you to determine which sections of the ST program are incorrect.

To debug parts of a program, you need to use the commands in the Debug group on the Logic tab:

To use breakpoints while debugging,use the commands in the Breakpoints group on the Logic tab:


ClearSCADA 2015 R2