21

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?

8
  • 2
    +1. I'm also having this problem. Commented Feb 18, 2009 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. Commented Dec 9, 2009 at 0: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: referencesource.microsoft.com/symbols checked - search the above locations only when symbols are loaded manually. Commented Dec 9, 2009 at 0: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. Commented Dec 9, 2009 at 0:32
  • possible duplicate of Unable to Step in to .net framework source code Commented Jul 22, 2010 at 5:45

4 Answers 4

5

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

Sign up to request clarification or add additional context in comments.

5 Comments

Ah... any KB article on the problem or any other reference?
Sadly no :( I'll try to complain some more.
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.
Ok, I got it to work for .NET 4.0 by simply downloading the .NET 4 symbols/source from referencesource.microsoft.com/netframework.aspx. I never could get it to work for .NET 3.5 SP1.
General Distribution Release, a release intended for a wide audience (almost always a security-related release)
4

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.

Comments

2

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.

1 Comment

I have this problem and .NET 3.5 SP1 is the first version I've tried with.
1

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.

4 Comments

Why don't add anything into Symbols?
It didn't work when I had them. When there is nothing in there it downloads the correct ones.
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: the same for me. Anyone knows the proper way to set it up correctly?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.