beckhoff TwinCAT 3 — 10 Debugging

Debugging 10 Debugging | Debugging No support for Beckhoff RT Linux ® For Beckhoff RT Linux ® , debugging through connections with engineering or loading dump files is currently not supported. TwinCAT C++ offers various mechanisms for debugging TwinCAT C++ modules running under real-time conditions. Most of them correspond to the mechanisms that are familiar from the normal C++ development environment. The automation environment requires additional, slightly different debugging mechanisms, which are documented here. In addition we provide an overview of Visual Studio toolbox that can be used in TwinCAT 3. These were extended, so that data from the target system are displayed.

Debugging must be enabled. This is configured via the C++ node of the solution: 1. Double-click on the C++ node and switch to the C++ Debugger tab to access the checkbox. 2. Make sure that you debug in the "Debug" build. Only here does the assignment of information work correctly. "Release" builds can generate incorrect displays. 3. For all debugging in TwinCAT C++, connect the TwinCAT Engineering with the runtime system (XAR) via the TwinCAT Debugger button. 4. Breakpoints and step-by-step execution In most cases when debugging a C++ program, breakpoints are set and the code is then executed step by step while observing the variables, pointers, etc.

In the context of the Visual Studio debugging environment, TwinCAT offers options to run real-time-executed code step by step. To set a breakpoint, you can navigate through the code and click on the gray column on the left adjacent to the code or use the hotkey (normally F9). TwinCAT 3 75 Version: 1.19.1