This project is read-only.

Debug into the Source Code

Topics: ASP.NET MVC, General
Mar 30, 2012 at 3:22 PM

Hello ASP.NET Team,

is there an easier way to debug from my MVC App into the framework source code or is this still the only way

My scenario: I´m currently working on CSRF prevention and want to know more about how the AntiForgeryToken works, but I´m unable to debug into the AntiForgeryWorker.cs because of "The breakpoint will not currently be hit. The source code is different...". 

Another scenario would be that I made some changes in the MVC source and want to debug into to framework.

Any ideas?

Mar 31, 2012 at 1:55 AM

That is still the best way for RTM versions of MVC.

Apr 2, 2012 at 7:41 AM

For the problem about changed source code file, have you tried right clicking the breakpoint, clicking "Location", and then checking "Allow the source code to be different from the original version"?