Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 867
Michiel van Oosterhout Avatar asked Mar 31 '09 14:03

Michiel van Oosterhout


2 Answers

  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.
like image 83
Shay Erlichmen Avatar answered Nov 15 '22 14:11

Shay Erlichmen


If you do download the MVC source files from Codeplex, I've written a step by step guide on how to debug the System.Web.Mvc assembly, which you may find useful.

like image 43
Steve Moss Avatar answered Nov 15 '22 15:11

Steve Moss