Debugging the state machine with the Usermode Runtime

The state machine of the TcCOM modules cannot be debugged in the real-time environment, as the debugger itself is still being started at that point.
The Usermode Runtime can be used for this.

A TwinCAT C++ project is loaded in Visual Studio
1. Activate the project in a Usermode Runtime
2. Open a second Visual Studio instance
3. Use the normal Visual Studio C++ debugger to connect to the Usermode Runtime process. Debug -> Attach to Process ... -> Selection of TcSystemServiceUm.exe
Debugging the state machine with the Usermode Runtime 1:
4. In this instance, add the TwinCAT C++ project that you want to debug. Set breakpoints in the transitions.
5. Start the Usermode Runtime - the breakpoints are reached.
Debugging the state machine with the Usermode Runtime 2: