2

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 1

8

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.

7
  • 1
    + don't forget to click 'show processes from all users'
    – Atila Sos
    Commented Jul 18, 2019 at 13:41
  • Hi @Josh Hebb, Thanks for your replay, we will check and let you know if we face any issues.
    – Sree G
    Commented Jul 19, 2019 at 8:07
  • Hi @AtilaSos, Yes we did the mentioned step, still no luck.
    – Sree G
    Commented Jul 19, 2019 at 8:08
  • 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 G
    Commented Jul 19, 2019 at 10:07
  • 1
    Thanks @Josh Hebb, We will work on this and let you if need further assistance.
    – Sree G
    Commented Jul 19, 2019 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.