c# - 调试 asp.net mvc 应用程序时出现 "Source information is missing from the debug information for this module"

标签 c# asp.net-mvc pdb-files

我很难调试 ASP.NET MVC 代码。我最终按照本 website 中的描述进行操作.调试符号已加载并适用于所有 dll,但 System.Web.MVC。当我双击 stacktrace 窗口中的任何一行时,它会显示消息 Source information is missing from the debug information for this module。我使用 http://msdl.microsoft.com/download/symbols 作为符号源。我缺少什么?我的符号服务器是否正确?

最佳答案

我可以成功调试 asp.net MVC 5.2.7 源代码。

  1. 请在这里下载 MVC 5.2.7 包: https://dotnet.myget.org/feed/aspnetwebstack-dev/package/nuget/Microsoft.AspNet.Mvc

  2. 在这里下载相应的源码(记得切换到正确的分支): https://github.com/aspnet/AspNetWebStack

  3. 根据symbol server设置你的符号服务器

  4. 在调试期间,确保 dll 已加载。

关于c# - 调试 asp.net mvc 应用程序时出现 "Source information is missing from the debug information for this module",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50018521/

相关文章:

c# - 将对象数组转换为不同的对象数组

c# - ASP.NET MVC ActionFilter 不会阻止其他过滤器运行

.net - .NET PDB文件的格式(模式)是什么?

c# - 将行号添加到以 Release模式部署的 ASP.NET 网站的堆栈跟踪

c++ - 预编译头问题

c# - 读取/写入音频/视频文件的元数据

c# - 主窗体变得相当大。建议?

c# - 何时调用 base.method() 以及 base.method() 中应包含哪些代码?

c# - c# 中的 PayPal 结帐问题

asp.net-mvc - 未部署 MVC 3 View