Alex Rivera | Logout

Where are the symbols for ASP.NET MVC 4.0 RTM?

Asked 2012-10-24T13:34:16.217
38

I'm trying to configure Visual Studio 2012 to allow me to step into ASP.NET MVC 4.0 source code. (System.Web.Mvc.dll). I've followed SymbolSource's recommended configuration but when I try to load the symbols, Visual Studio can't locate them.

Recommended configuration

To configure Visual Studio for symbol/server use, follow these instructions:

  1. Go to Tools -> Options -> Debugger -> General.
  2. Uncheck “Enable Just My Code (Managed only)”.
  3. Uncheck “Enable .NET Framework source stepping”. Yes, it is misleading, but if you don't, then Visual Studio will ignore your custom server order (see further on).
  4. Check “Enable source server support”.
  5. Uncheck “Require source files to exactly match the original version”
  6. Go to Tools -> Options -> Debugger -> Symbols. Select a folder for the local symbol/source cache.
  7. Add symbol servers under “Symbol file (.pdb) locations”. Pay attention to the correct order, because some servers may contain symbols for the same binaries: with or without sources. We recommend the following setup:

I am aware

Edit
Report

1 Answer

1

Let me start with that ReSharper provides a handy dialog to step in the code at any time:

enter image description here

So you get the following code screen if you drill to the source code:

enter image description here

But I became curious to accomplish this by hand. I started with proper pdb configuration:

enter image description here

After that I got the following error:

enter image description here

Next I copied the C:\Users\Andrew\AppData\Local\Temp\SymbolCache\MicrosoftPublicSymbols\System.Web.pdb\CA49C4332DE847FA967F58AFF370B70E1\System.Web.pdb to C:\Users\Andrew\AppData\Local\Temp\SymbolCache\System.Web.pdb (to match the lookup path). After that i encountered this:

enter image description here

And it turned out that the mismatching builds are only good for browsing the source, not debugging. (Current machine has VS2012 RC, hence MVC libraries are not RTM). If they match, you'll the the source.

I still don't know why doesn't the lookup path adjust to symbol configuration. Hope this helps.

answered 2012-11-04T10:41:39.937

Your Answer