Many developers are having question of how to debug the Web API from client project or from source that consumes Web API.
For debugging the Web API there's no need to use any new extension, well you can do this stuff in Visual Studio itself.
- Go to Solution Explorer where you would be having webapi project and the project that consumes web api.
- Now right click and select properties or hit Alt+Enter.
- Now in Startup Project select multiple startup project.
- Go to Action and select Start in dropdown for both projects.
- That's it now click Apply and Ok.
- Now create a breakpoint in both projects and enjoy the debugging.
No comments:
Post a Comment