Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i use a new Phil's routedebugger

Try to use, but do not understand what should i do for enabling of it.

tried the old style but it doesnt work for me:

protected void Application_Start(object sender, EventArgs e)
{
  RegisterRoutes(RouteTable.Routes);
  RouteDebug.RouteDebugger.RewriteRoutesForTesting(RouteTable.Routes);
}

here the link to post: http://haacked.com/archive/2011/04/13/routedebugger-2.aspx

like image 934
Sasha Avatar asked Apr 15 '11 16:04

Sasha


3 Answers

Simply install the NuGet package which will add the assembly reference to your project and you are good to go. It will print route information on the bottom of each page. It uses the microsoft dynamic infrastructure to add an http module at runtime. So all you need is to run the following command in the NuGet package console window:

PM> Install-Package RouteDebugger

and then run your application.

like image 169
Darin Dimitrov Avatar answered Nov 01 '22 04:11

Darin Dimitrov


Installing through NuGet adds a line to your web.config. For some reason this didn't happen for me and it didn't work.

Make sure this line is in your "appSettings" in your web.config:

<add key="RouteDebugger:Enabled" value="true"/>
like image 20
Ryan Bosinger Avatar answered Nov 01 '22 03:11

Ryan Bosinger


If you are still having problems, make sure you don't have optimizeCompilations="true" setting in your web.config.

like image 9
dimoss Avatar answered Nov 01 '22 04:11

dimoss