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
365 views
in Technique[技术] by (71.8m points)

asp.net mvc - 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?

See Question&Answers more detail:os

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

1 Answer

0 votes
by (71.8m points)

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.


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

...