After running your application on the PLC, use the debugging and tracing tools provided by SIMATIC AX Logic Control Engineering to monitor and troubleshoot your application directly on the device.
- SIMATIC Debugger (CLI command
sdb): Debug your running application on the PLC: Set logpoints, inspect variables, and capture the call stack. - Monitor (CLI command
mon): View the current state of global variables without interrupting the running application. - Modify (CLI command
mod): Temporarily change variable values on the running PLC to investigate issues without redeploying code. - Tracing (CLI command
trace): Record the execution flow of your program to analyze how your code behaves under different conditions and identify performance issues or logical errors.
Tracing is particularly useful for understanding complex interactions in your control logic and for diagnosing issues that may not be easily reproducible in a test environment. By recording the execution flow, tracing reveals how your code behaves under different conditions and helps you optimize performance.
Related links: