How to debug through .NET Framework source code?

I've followed the steps outlined in 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?


This is broken in the latest GDR, Microsoft needs to fix it

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.

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.

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.

Need Your Help

objective-c smb volume mount fsmountservervolumesync

xcode macos linker compiler-errors core-services

I trying to mount the volume programmatically with code I found here

Creating a Linq statement to create objects


If I created a Linq statement as shown below, it works fine.