Invoking the visualizer

Feb 2, 2011 at 7:56 PM

It's a bit hard to see in the video, so I thought I'd write down how to use the tool once it's installed.

  1. Debug your program. Set a breakpoint and open the Watch or QuickWatch window.
  2. Add a Watch for System.Web.Routing.RouteTable.Routes
  3. Click on the magnifying glass icon at the right side of the Value field on the new Watch row. The MvcRoute Visualizer should open.

You can see the current URL in the Request Url field, and a grid of currently-defined Routes below. Routes that match the URL are highlighted. You can change the value in Request Url, click the Match Routes button and see what routes match the new URL.