Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
230 views
in Technique[技术] by (71.8m points)

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:

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?

question from:https://stackoverflow.com/questions/13050395/where-are-the-symbols-for-asp-net-mvc-4-0-rtm

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...