asp.net - Is there a tool in VS2015 to debug webapi routes? -


in visual studio 2015 (enterprise), there still no built-in tool dissect , display routing information webapi calls?

webapi route debugger not seem work asp.net 5 (and mangles default page in template)

glimpse not offer "launch now!" button anymore can tell (http://blog.markvincze.com/use-glimpse-with-asp-net-web-api/).

routedebugger figuring out routes will/will not hit.

http://nuget.org/packages/routedebugger saying doesn't work. after googling found solution problem,

add event handler in global.asax.cs pick incoming request , @ route values in vs debugger. override init method follows:

public override void init() {     base.init();     this.acquirerequeststate += showroutevalues; } 

...

protected void showroutevalues(object sender, eventargs e) {     var context = httpcontext.current;     if (context == null)         return;     var routedata = routetable.routes.getroutedata(new httpcontextwrapper(context));  } 

then set breakpoint in showroutevalues , @ contents of routedata.

keep in mind in web api project, http routes in webapiconfig.cs ... not routeconfig.cs

but that's not tool. may digging thread resolve issue.

reference: is there way can debug route in asp. mvc5?


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -