I've followed the steps outlined in http://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx to enable source debugging of the .NET Framework, and I had it working in the past. Now that I'm using .NET 3.5 SP1, it seems to have stopped working. Beyond the steps in the blog entry I just mentioned, what special steps can I make to get source debugging working again?
-
2+1. I'm also having this problem. – Vilx- Feb 18 '09 at 15:31
-
I'm unable to debug Framework Source on Visual Studio SP1. It used to work on my machine. I initially had Windbg and Visual Studio caching symbols to the same directory but now I've moved the VS.NET cache to it's own directory to force it to redownload the symbols. – David Silva Smith Dec 09 '09 at 00:30
-
My output window states: Step into: Stepping over method without symbols 'System.Web.UI.WebControls.XmlDataSourceView.XmlDataSourceView' Here are some excerpts from my environment Options Debugging --> General unchecked -Enable Just My Code checked - Enable .NET Framework source stepping checked - Enable Source Server Support checked - Print source server diagnostic messages to the Output window Options Debugging --> Symbols checked - symbol file (.pdb) locations: http://referencesource.microsoft.com/symbols checked - search the above locations only when symbols are loaded manually. – David Silva Smith Dec 09 '09 at 00:31
-
Modules window: System.Web.dll C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll Yes N/A Symbols loaded. C:\managedSymbols\MicrosoftPublicSymbols\System.Web.pdb\DBE79CC9E37744848AFF0F27BA61686C1\System.Web.pdb 10 2.0.50727.3082 (QFE.050727-3000) 11/25/2008 12:03 AM 65F20000-66A63000 [6848] System.Web.pdb size 912,384 bytes. – David Silva Smith Dec 09 '09 at 00:32
-
possible duplicate of [Unable to Step in to .net framework source code](http://stackoverflow.com/questions/886009/unable-to-step-in-to-net-framework-source-code) – Alex Angas Jul 22 '10 at 05:45
-
@Alex, I think you should mark the *other* question as a dupe of this one, seeing as this one came first, and has more answers too. – Andrew Arnott Jul 22 '10 at 19:42
-
@Andrew: Whoops - thanks. There are a few dupes around this topic. – Alex Angas Jul 22 '10 at 23:19
4 Answers
This is broken in the latest GDR, Microsoft needs to fix it

- 73,868
- 16
- 141
- 209
-
-
-
Is this still broken? Also ... what about .NET 4.0? I've been trying to debug into ContentPresenter for either WPF 3.5 SP1 or WPF 4.0 and I can't get it to work. – cplotts Jan 04 '11 at 18:11
-
1Ok, I got it to work for .NET 4.0 by simply downloading the .NET 4 symbols/source from http://referencesource.microsoft.com/netframework.aspx. I never could get it to work for .NET 3.5 SP1. – cplotts Jan 04 '11 at 23:59
-
2General Distribution Release, a release intended for a wide audience (almost always a security-related release) – Ana Betts Nov 16 '11 at 01:40
I had the same problem when I upgraded to .NET 3.5 sp1. It seems like it's very simplified with the sp1 release. Now you only have to check the "Enable .NET framework source stepping" (which automatically unchecks "Enable just my code"). You don't have to change anything in the "Symbols" settings anymore.

- 4,299
- 12
- 53
- 74
You probably need to refresh your downloaded symbols. In the Symbol settings dialog you specify a cache directory where symbols are cached. Since you have upgraded your .NET framework, therefore, the symbols cached there are most probably the older ones which won't work with the newer dlls. Just clear your directory and then download symbols for .NET 3.5 SP1 again.

- 14,882
- 6
- 45
- 69
-
I have this problem and .NET 3.5 SP1 is the first version I've tried with. – Taylor Leese Nov 12 '09 at 07:23
Debugging didn't work for me when I first followed those steps. I deleted symbol directory and removed all settings from Options -> Debugging -> Symbols and it worked.
- Uncheck "Enable Just My Code"
- Check "Enable .NET Framework source stepping"
- Check "Enable source server support"
- Don't add anything to Debugging -> Symbols
Works just fine on Windows 7 x64 with Visual Studio 2008 SP1.

- 26,745
- 6
- 48
- 60
-
-
It didn't work when I had them. When there is nothing in there it downloads the correct ones. – Nikola Smiljanić May 10 '10 at 10:32
-
This didn't work for me. Of course ... it is over a year later. It downloaded the symbols, but when I try to double click a stack frame to debug the .NET Framework ... it says that no source code is available. – cplotts Jan 05 '11 at 00:08
-
@cplotts: the same for me. Anyone knows the proper way to set it up correctly? – mcanti Mar 02 '14 at 10:12