Open the file containing the
function you wish to debug.
Click the Toggle Debug button, or
choose Debug | Start Debugging.
Note: If the current project is not
running, CitectSCADA
compiles and runs it automatically. The bug in the bottom
right-hand corner is green when debugging.
Insert a breakpoint where you
want to start debugging.
From the View menu, select any debug windows you want to use. If
you are unsure, you can use them all.
Initiate the thread by calling
the function. You can do this directly from the Cicode window in
the Kernel, or by using a function, etc.
The function will break at the
specified breakpoint. You can then use the step tools to step
through and trace your function.
Click the Toggle Debug button to
stop debugging, or choose Debug | Stop Debugging.