C#C
C#3y ago
dotnetdev

❔ Debugging asp.net core app from vscode

I am debugging asp.net core webapi from vscode, one endpoint is returning 404. when I trigger api from postman or swagger, it is not going to any breakpoint and directly returns 404. my questions is, what is the very first line of code that I should put breakpoint to get after triggering request from postman or swagger. Action method on Controller is not the first point for breakpoint, because some status returns even before them.
I found a library for debugging endpoints, routes debugger, but it doesn't works on dotnet 7. but why should we use library, can't wait do that with debuggers.
Was this page helpful?