microsoft / referencesource

Source from the Microsoft .NET Reference Source that represent a subset of the .NET Framework
https://referencesource.microsoft.com/
MIT License
3.17k stars 1.27k forks source link

.Net references source server information not indexed in PDB #135

Open tommcdon opened 4 years ago

tommcdon commented 4 years ago

This issue is tracking the problem reported in Visual Studio ticket: https://developercommunity.visualstudio.com/content/problem/642839/net-references-source-not-working.html

To reproduce:

  1. Follow steps outlined at https://referencesource.microsoft.com to setup Visual Studio Debugging

  2. Step into a framework method, such as:

        static void Main(string[] args)
        {
            Int32.Parse("invalid");
        }
  3. Observe the mscorlib PDB does not contain source server information:

    SRCSRV: The module 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll' does not contain source server information.

    Expected:

The PDB contains the source server information and VS downloads the appropriate source file

Zarepheth commented 4 years ago

VS 2019, debugging with source stepping turned on and source servers configured. I'm being asked to locate "filestream.cs".

The original location: f:\dd\ndp\clr\src\BCL\system\io\filestream.cs makes no sense on my machine.

I may have additional issues: