Eat at Joes
Eat at Joes

Reputation: 5019

How to step into MVC4 source code without building assembly

Is there an easy way to step through the MVC 4 source from within my solution?

I found this question but the solution requires building the MVC 4 assembly from source. I would think a symbol look up from a server would be preferable but have not been able to make this happen.

Ideas?

Upvotes: 28

Views: 15881

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039498

Add the following symbol servers to your Visual Studio and you are good to go:

Here's how mine look like:

Options Dialog with Symbols Configured

Also you need to configure your debugger to use them:

  1. Tools -> Options -> Debugger -> General.
  2. Uncheck "Enable Just My Code (Managed only)"
  3. Check "Enable .NET Framework source stepping"
  4. Check "Enable source server support"
  5. Uncheck "Require source files to exactly match the original version"

Oh and of course don't forget to revert those settings back when you no longer need to debug in .NET sources or otherwise debugging might become a painfully slow experience for you.

Upvotes: 52

Related Questions