Unable to watch variables during debug of T4 templates after updating to Visual Studio 2015 Update 2

与世无争的帅哥 提交于 2021-02-09 03:56:47

问题


After Updating Visual studio 2015 from VS2015 Update 1 to Update 2. I can no longer watch or inspect variable values during T4 template debugging

As you can see, the watched variables are not found in the current context. This was previously working in Visual Studio 2015 update 1

Here is a Screenshot in visual studio while debugging a T4 template:


回答1:


I had the same trouble. Try this "Debug->Options->Debugging:General-> set checkbox on the Use Managed Compatibility Mode".




回答2:


This looks like a bug that was introduced in Visual Studio 2015 Update 2. Essentially the debugger is unable to inspect local variables in dynamic modules and it may be causing the behavior you are seeing. We released a hotfix for it today. You can download the patch here. Documentation for the patch is here. Let me know if the patch does not fix your particular scenario.

Thanks!

-Patrick Nelson



来源:https://stackoverflow.com/questions/36396156/unable-to-watch-variables-during-debug-of-t4-templates-after-updating-to-visual

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!