Search code examples
asp.net-mvcdebuggingdebug-symbols

I want to debug (set a breakpoint in) System.Web.Mvc.DefaultControllerFactory, is that possible?


I have a project that references the System.Web.Mvc assembly in the GAC. I also have the ASP.NET MVC source code from Codeplex. I want to get a better understanding of the DefaultControllerFactory by stepping through its methods. How could I set this up?

Thanks!


Solution

    1. Compile the MVC code.
    2. Uninstall the MVC (To make sure you don't debug the retail bits)
    3. Use the assembly that you compiled, instead of the retail.