c# - in ASP.NET MVC3 how can I see the request? -


i'm using simple route as

routes.maproute(     "default2", // route name     "{cliurl}/{id}", // url parameters     new { cliurl = "none", controller = "abook", action = "index", id = "none" } // parameter defaults );  routes.maproute(     "default", // route name     "{cliurl}/{controller}/{action}/{id}", // url parameters     new { cliurl = "none", controller = "abook", action = "index", id = "none" } // parameter defaults ); 

and when debug website (vs2010 sp1), have breakpoint in abook controller, inside index action method witch contains only:

// // get: /abook/ public actionresult index() {     if (currentclient == null)         return redirecttoaction("empty");      return view(); }  // // get: /empty/ public actionresult empty() {     return view(); } 

the thing that, when insert in browser:

http://localhost:14951/client_name/hashed_id 

i 3 breaks in breakpoint.

how can see in world going on? why 3 times when requested 1, browser requesting?

i can route parameters , first correct, 2nd , 3rd using default values, , tried navigate through requestcontext , can't see useful :(

just want know if there way see what's been requested.

i ended using glimpse

http://getglimpse.com/

http://www.balexandre.com/temp/2011-05-28_1854.png


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -