-1

im currently debugging a larger asp.net mvc solution. Now I'm pretty sure that a API call that is made serverside in c# is returning some kind of faulty value. The problem is though, the project has a LOT of api calls that looks like each other.

When i debug websites in the browser, I've gotten used to using the browsers developer tools "network" tab to view all external calls to API's done by javascript, and methods in the solution.

Is there some way to get a overview of all api calls that happens in c#/serverside, as they happen?

Ask Sejsbo
  • 93
  • 1
  • 8
  • See https://stackoverflow.com/questions/24954169/visual-studio-method-sequence – Sergey Vlasov Jun 18 '20 at 04:18
  • Are you sure you shouldn't be looking at request logging? Even in Chrome, request capture is *not* part of debugging. You didn't specify which MVC version you use, or whether it's ASP.NET Old or ASP.NET Core, but all of them have some way of logging requests – Panagiotis Kanavos Jun 18 '20 at 10:29
  • Worst case, you can enable logging for `System.Net` classes and get all requests at a verbose level. You can also enable request logging in IIS – Panagiotis Kanavos Jun 18 '20 at 10:31

1 Answers1

0

Getting overview of asp.net c# api calls

VS IDE does not have such option to view all the apis that are called during debugging.

But some VS extensions may realize it. You can try Fiddler extension, PostSharp extension or use Runtime Flow(thanks to Sergey for sharing it).

In addition, you can try to use encoding method like enable System.NET logging and get its request. See this net framework network trace and net core trace.

If these do not meet your requirements, you could suggest a feature on our User Voice Forum.(click Suggest a Feature).

After that, you could share the link with us here and anyone who is interested in it including us will vote it so that it will get more Microsoft's attention.

Mr Qian
  • 21,064
  • 1
  • 31
  • 41