如何进入MVC4源代码,无需构建汇编 [英] How to step into MVC4 source code without building assembly

查看:125
本文介绍了如何进入MVC4源代码,无需构建汇编的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我发现这个问题,但解决方案需要从源代码构建MVC 4程序集。我会认为从服务器上查找的符号是比较可取的,但是无法使这种情况发生。



想法?

解决方案

将以下符号服务器添加到Visual Studio中,你很好:





以下是我的外观:





另外您还需要确定您的调试器使用它们:


  1. 工具 - >选项 - >调试器 - >常规。

  2. 取消选中启用我的代码(仅管理)

  3. 选中启用.NET Framework源脚步

  4. 选中启用源服务器支持

  5. 取消选中要求源文件与原始版本完全匹配

哦,当然不要忘记在不再需要调试.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:

Here's how mine look like:

Also you need to configure your debugger to use them:

  1. Tools -> Options -> Debugger -> General.
  2. Uncheck "Enable Just My Code (Managed only)"
  3. Check "Enable .NET Framework source stepping"
  4. Check "Enable source server support"
  5. 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源代码,无需构建汇编的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆