First this is new to me. I create T4 using the Guidance Automation Toolkit (GAT) but I didn't know that if I add this:
<#@ import namespace="System.Diagnostics" #>
<# Debugger.Break(); #>
(...)