问题描述
我发现这个,但解决方案需要从源代码构建MVC 4程序集。我会认为从服务器上查找的符号是比较可取的,但是无法使这种情况发生。
想法?
将以下符号服务器添加到Visual Studio中,你很好:
以下是我的外观:
另外您还需要确定您的调试器使用它们:
- 工具 - >选项 - >调试器 - >常规。
- 取消选中启用我的代码(仅管理)
- 选中启用.NET Framework源脚步
- 选中启用源服务器支持
- 取消选中要求源文件与原始版本完全匹配
哦,当然不要忘记在不再需要调试.NET源代码的情况下恢复这些设置,否则调试可能会为您带来痛苦的缓慢体验。
Is there an easy way to step through the MVC 4 source from within my solution?
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.
Ideas?
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
Here's how mine look like:
Also you need to configure your debugger to use them:
- Tools -> Options -> Debugger -> General.
- Uncheck "Enable Just My Code (Managed only)"
- Check "Enable .NET Framework source stepping"
- Check "Enable source server support"
- Uncheck "Require source files to exactly match the original version"
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源代码,无需构建汇编的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!