本文介绍了mscorlib的源不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我正在研究VS Professional 2015,在调试包含mscorlib的.NET库时,
pdbs已下载并显示已加载模块窗口。

但是,导航到callstack上的任何mscorlib或System.dll方法都会给我:


调试信息中缺少源信息模块


好像提供的pdb没有指定如何引用来源。


我以前遇到的问题是它从未计算过在哪里找到源代码,所以我刚刚下载了这个
https://referencesource.microsoft.com

并手动获取源代码和pdb会工作,所以我知道这次不是缺少源代码

而是与pdb或VS有关。


是的,我"得到了"Just My Code" to false和"启用.NET源步进"为了真实。



这似乎在.NET 4.6中变得更糟,因为有时候一些pdbs不起作用,但是b $ b现在没有一个执行。 

我已经下载了源代码并手动将callstack方法映射到referencesource.microsoft.com上的那个方法,但pdb的实际工作效果会非常酷:)(/ p >

我已经尝试删除我的符号缓存,单独加载模块,然后对着桌子砸我的头。


我的VS详细信息(为此情况修剪)


Microsoft Visual Studio Professional 2015

版本14.0.25431.01更新3

Microsoft .NET Framework

版本4.6.01586



已安装版本:专业版



Visual C#2015  00325-60002-24433-AA037

Microsoft Visual C#2015



谢谢!


解决方案


Hi, 
I'm working on VS Professional 2015, when debugging .NET libraries including mscorlib
the pdbs are downloaded and appeared loaded in the modules window.
However, navigating to any mscorlib or System.dll method on the callstack gives me:

Source information is missing from the debug information for this module

As if the pdb provided did not specify how to refer to the source.

I've had issues in the past were it never figures out where to find the source-code, so I just downloaded
https://referencesource.microsoft.com
and manually get to the source-code, and the pdb will work, so I know that this time its not the lack of source-code
but rather something to do with the pdb or VS.

Yes, I've got "Just My Code" to false and "Enable .NET Source Stepping" to true.

This seems to have gotten much worse with .NET 4.6, as sometimes some pdbs didnt work,
now none of them do. 
I have downloaded the source-code and manually map the callstack method to the one on referencesource.microsoft.com but it would be pretty cool of the pdb's actually worked :)

I've tried deleting my symbol cache, loading modules individually, and smacking my head against the table.

My VS details (trimmed for this case)

Microsoft Visual Studio Professional 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Professional

Visual C# 2015   00325-60002-24433-AA037
Microsoft Visual C# 2015

Thanks!

解决方案


这篇关于mscorlib的源不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 03:19