-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?

3
  • See stackoverflow.com/questions/24954169/… Commented Jun 18, 2020 at 4: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 Commented Jun 18, 2020 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 Commented Jun 18, 2020 at 10:31

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

This should be a comment. Besides, one can enable System.NET logging and get all requests and more
Thanks for sharing the useful info.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.