Volodymyr V.
Volodymyr V.

Reputation: 147

How to debug System.Web.dll?

I want to see what happens inside System.Web.dll in ASP.NET MVC Application.

I have VS 2017 and ASP.NET MVC Application. I loaded debug symbols for System.Web.dll. After that call stack changed color from grey to black. But if trying click on any line in call stack for System.Web.dll, source code is not appearing and instead this is shown the message: Source information is missing from the debug information for this module (screenshot)

I am want seeing and debugging code of System.Web.dll. Could anyone help me with it? Thanks!

Upvotes: 0

Views: 2508

Answers (2)

Volodymyr V.
Volodymyr V.

Reputation: 147

Thanks to Lance Li-MSFT I solved problem!

By link that you gave, first step says "Ensure https://referencesource.microsoft.com/ contains the exact version you're debugging". In my application was used version 4.6.1, but referencesource.microsoft.com references on version 4.8.

After I installed version 4.8 everything worked out!

Thanks to all for help!

Upvotes: 0

Hien Nguyen
Hien Nguyen

Reputation: 18973

Step 1: You can download source code of System.Web.dll at this link

https://github.com/microsoft/referencesource

Step 2: Add project for System.Web to your solution

Step 3: Remove System.Web.dll from reference in your solution.

Step 4: Add > Reference > Select Solution tab > Select projects > System.Web project

Step 5: Rebuild and set breakpoints in System.Web source code to debug

Upvotes: 1

Related Questions