如何在不构建程序集的情况下进入 MVC4 源代码 [英] How to step into MVC4 source code without building assembly
问题描述
是否有一种简单的方法可以从我的解决方案中逐步执行 MVC 4 源代码?
Is there an easy way to step through the MVC 4 source from within my solution?
我发现了这个问题,但该解决方案需要构建 MVC4 从源头组装.我认为从服务器查找符号会更可取,但无法实现这一点.
I found this question but the solution requires building the MVC 4 assembly from source. I would think a symbol look up from a server would be preferable but have not been able to make this happen.
想法?
推荐答案
将以下符号服务器添加到您的 Visual Studio 中即可:
Add the following symbol servers to your Visual Studio and you are good to go:
- http://referencesource.microsoft.com/symbols
- http://srv.symbolsource.org/pdb/Public
- http://srv.symbolsource.org/pdb/MyGet
- http://msdl.microsoft.com/download/symbols
这是我的样子:
你还需要配置你的调试器来使用它们:
Also you need to configure your debugger to use them:
- 工具 -> 选项 -> 调试器 -> 常规.
- 取消选中仅启用我的代码(仅限托管)"
- 选中启用 .NET Framework 源步进"
- 勾选启用源服务器支持"
- 取消选中要求源文件与原始版本完全匹配"
哦,当然,当您不再需要在 .NET 源代码中进行调试时,请不要忘记恢复这些设置,否则调试对您来说可能会变得非常缓慢.
Oh and of course don't forget to revert those settings back when you no longer need to debug in .NET sources or otherwise debugging might become a painfully slow experience for you.
这篇关于如何在不构建程序集的情况下进入 MVC4 源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!