Search code examples
asp.netasp.net-mvcvisual-studio-debuggingchrome-debugging

Getting overview of asp.net c# api calls


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?


Solution

  • 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.