T4调试方法

<#@ template language="C#" debug="true" hostspecific="True" #>

System.Diagnostics.Debugger.Launch();

原文地址:https://www.cnblogs.com/Anthony518/p/11570347.html