Everyone might be facing the same problem with debugging Tridion templates: How to debug Tridion Templates locally without connecting to the remote TcmTemplateDebugHost.exe
Is there way to debug Tridion templates locally?
Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It only takes a minute to sign up.
Sign up to join this communityYes, there is a way to debug tridion templates locally.
@Rob has provided a wonderful facility called the "TcmDebugger" which enables the ability to debug templates locally without connecting to a remote TcmTemplateDebugHost.exe
.
TcmDebugger is a .NET console application which runs the SDL Tridion Content Manager render/publishing engine in a local context.
This allows a developer to extensively debug .NET templates, .NET custom functionsources and .NET custom mediators on their local workstation.
SDL Tridion Content Manager .NET Templating Debugger
With this TCMDebugger, we can test the template in three engine types that is Debug, Debug Engine Server and Render engines
To execute a template you need to run it on the server, as it needs to have a database connection to the CM database to pull in all the content plus consituent TBBs, plus access to all of the Tridion API to know what to do with this. As such it is not possible (at present) to execute a template (and thus also to debug them) locally without connecting to the server