在VS 2010中调试T4模板会崩溃IDE [英] Debugging T4 Template in VS 2010 Crashes IDE
本文介绍了在VS 2010中调试T4模板会崩溃IDE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用 DbgJITDebugLaunchSetting 键。
我得到一个对话框,指示用户定义的断点已被击中。但是,VS 2010的原始实例不是被提供了使用VS 2010的新实例进行调试的选项,而是崩溃并自动重新启动。
I get a dialog indicating that a user-defined breakpoint has been hit. However, rather than being presented with the option to debug with a new instance of VS 2010, the original instance of VS 2010 just crashes and auto-restarts.
是否可能使用VS 2010调试T4模板?
Is it possible to debug T4 templates with VS 2010?
推荐答案
在Visual Studio 2010中,您需要在Debugger.Break之前调用Debugger.Launch() ()。
in Visual Studio 2010 you need to call Debugger.Launch() before Debugger.Break().
这篇关于在VS 2010中调试T4模板会崩溃IDE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文