问题
This is embarrassing -- I've been programming .NET for many years and despite following the MSDN instructions for debugging the .NET sources, I've never been able to get it to work.
When I attempt to step into some Framework code (the c'tor for StringBuilder
, for example), the debugger just skips right over, onto the next statement. I can't step into any framework code.
I'm using VS 2017, Framework v4.7.
Below are the debugging options.
回答1:
Go to Symbols and add this URL http://referencesource.microsoft.com/symbols and a local cache path.
Please see:
https://blogs.msdn.microsoft.com/sburke/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code/
Other community members asked the simliar issue about debugging the .NET 4.6 here:
How do I debug .NET 4.6 framework source code in Visual Studio 2017?
Update:
It really has this issue from old VS version to VS2017, anyway, since we could repro this issue now, if possible, like Leo's suggestion, you could vote and add your comment here:
https://developercommunity.visualstudio.com/content/problem/101533/could-not-debug-net-framework-on-windws-10-machine.html
来源:https://stackoverflow.com/questions/45828032/stepping-into-net-source-still-doesnt-work