Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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:
    • http://referencesource.microsoft.com/symbols
    • http://srv.symbolsource.org/pdb/Public or the authenticated variant (see above)
    • http://srv.symbolsource.org/pdb/MyGet or the authenticated variant (see above) (other symbol servers with sources)
    • http://msdl.microsoft.com/download/symbols (other symbol servers without sources)

I am aware that the source code is available on CodePlex, however I'm specifically interested in stepping into the code using a symbol server instead of having to unreference Mvc from the GAC and reference a locally built assembly.

Has anyone had success doing this with MVC 4.0?

like image 509
joshuapoehls Avatar asked Oct 24 '12 13:10

joshuapoehls


People also ask

What is symbol ASP Net?

In ASPX page, @ symbol is used along with the page directives. In the Code page, @ Symbol is used for the string values escape characters.

Is ASP.NET MVC discontinued?

ASP.NET MVC is no longer in active development. The last version update was in November 2018. Despite this, a lot of projects are using ASP.NET MVC for web solution development. As to JetBrains' research, 42% of software developers were using the framework in 2020.

What is current ASP.NET MVC version?

ASP.NET Core MVC 3.1. 1 released on 14 January 2020 is the latest ASP.NET MVC version.


1 Answers

Just add a symbol server that serves more then just major releases.

Try this one, contains most minor builds.

http://srv.symbolsource.org/pdb/Public 

Verify:

Run VS as administrator.

Check that something have been downloaded to your symbol cache directory.

Goto select only specified modules. Add "System.Web.Mvc.dll"

Set a break point in your code. Start debug. When break point hits rightclick in callstack on any mvc.dll row. Verify that symbols are loaded. if loaded, try dubbleclick on one callstack row to open mvc source.

Get back with where you get in trouble.

like image 137
Simon Avatar answered Sep 27 '22 17:09

Simon