Did you know TwinCAT has a CallStack?

Call Stack enables you to better debug your code.