Debugging | Debugging the state machine with the Usermode Runtime The extension can be installed using the following command: tcpkg install TwinCAT.XAE.WinDbgExtension It is installed appropriately so that WinDbg recognizes it directly. After starting WinDbg, the extension is loaded by entering it in WinDbg: .load TcDbgExt The command !tc is then available, which outputs a help text with the functions described above. Sample output kd> .load TcDbgExt kd> !tc Beckhoff TwinCAT WinDBG Extension: available commands: !tc list modules Lists the above elements of runtime. Use -h to get specific information for list. !tc reload Reloads the symbols of all loaded TwinCAT modules.
The command can operate without XAR debug symbols, if TwinCAT.XAR.Realtime 2.0.60 or later is used. !tc ctx restore twincat exception context for twincat bugchecks (code=BE00XXXX) the command can operate without symbols for XAR-Runtime, if TwinCAT.XAR.Realtime 2.0.60 or later is used. !tc wrlog [--path ] Save TE1010 TwinCAT 3 Realtime Monitor project with recorded data to file(s) with name TwinCAT.XAR.Realtime 2.1.1 or above is required for this command to work. !tc help Print this help text. If is set, the help request is forwared to the given command.
10.5 Debugging the state machine with the Usermode Runtime | 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 TC1700 Usermode Runtime on Windows. 2. Open a second Visual Studio instance TwinCAT 3 83 Version: 1.19.1