Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
364 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...