We are trying to follow the steps which are mentioned in the document. Debugging .NET assembly Template Building Blocks But we are not able to find the "TcmTemplateDebugHost" Process in the "Attach to Process dialog" box.
1 Answer
In order to debug against the "TcmTemplateDebugHost" locally, you need to setup Remote Debugging (link below). If you have access to the CM server itself, you can also run Template Builder on the CM and debug directly against the TcmTemplateDebugHost process assuming Template Builder is running.
There used to be some extensions required which would run the SDL Tridion Content Manager render/publishing engine in a local context, but SDL now provides a way to do this out of the box.
You can find the documentation here explaining how to debug remotely. But basically you just need to run the Visual Studio Remote Debugging Monitor on the CM server, and then you should be able to open Visual Studio and Template Builder locally and attach to the remote process running on the CM server.
You do need to actually execute a TBB in Template Builder for the process to spin up. You should see in Template Builder (assuming logging is on Debug) the id of the process which was started:
Debugging was started in process 'TcmTemplateDebugHost' with id 12716
Once you see that line, you can verify on the CM server that the process is running in the Details tab of Task Manager.
Hope this helps.
-
1
-
Hi @Josh Hebb, Thanks for your replay, we will check and let you know if we face any issues.– Sree GCommented Jul 19, 2019 at 8:07
-
-
Hi @Josh Hebb, I could not find “Visual Studio Remote Debugging Monitor (msvsmon.exe)” on CM server. It is present on Local where visual studio is installed. Below is the path of "msvsmon.exe" where it is present. Path: <VisualStudioInstallationPath>\Microsoft Visual Studio\Common7\IDE\Remote Debugger\. It seems the solution will work when VS, template builder is present on CM server as you mentioned in answer. We guess this exe should be available only where the VS is installed. Let me know your thoughts– Sree GCommented Jul 19, 2019 at 10:07
-
1Thanks @Josh Hebb, We will work on this and let you if need further assistance.– Sree GCommented Jul 19, 2019 at 13:01