Are you sure that you use the same version as the source ?
For example, with VS 2022, I use 4.8 :
and the source is :
E:\Sources\DotNet48ZDP2\Source\ndp\fx\src\net\System\Net\HttpWebRequest.cs
and debugging works fine :
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am using Visual studio to debug framework level code, I followed https://referencesource.microsoft.com/setup.htmlarticle and also downloaded the source code from https://referencesource.microsoft.com/download_47.html, While debugging when hitting the HttpWebRequest.cs debugger is not pointing to correct code, It it hitting some empty-space or comments arbitrarily.
I guess source code is not correctly mapped.
I tried deleting bin folder, clean and re-build project, restarting the pc, Empty symbol cache.
Please suggest how can I troubleshoot this issue.
Thanks in advance.
Are you sure that you use the same version as the source ?
For example, with VS 2022, I use 4.8 :
and the source is :
E:\Sources\DotNet48ZDP2\Source\ndp\fx\src\net\System\Net\HttpWebRequest.cs
and debugging works fine :
Hi @Yash Maheshwari,
Welcome to Microsoft Q&A!
Please refer to: Debug .NET Framework source and go to Tools > Options > Debugging > Symbols > check “Microsoft Symbol Servers”.
You can view the similar issue.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.rs to provide solutions to the user's question.