When i request to the page. Why can't debug in configure method in file startup.cs?
Are configure method run only once when application start?
Yes, the Configure method in the Startup class of an ASP.NET Core application executes once at application start-up. It configures the middleware components that control how your app will respond to HTTP requests.
More information on this method can be found here: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/startup?view=aspnetcore-2.1
And here's a nice overview of the ASP.NET Core startup process: https://developer.telerik.com/featured/understanding-asp-net-core-initialization/
Configureand what you want to debug? ForConfiguremethod itself, it will only run once since it is only used to configure the request pipeline. There is no need to runConfiguremethod once the pipeline is but. ForRequest the page, it will go through theMiddlewareone by one instead ofConfiguremethod, in general, if you want to debug request, you need to debugMiddlewareinstead ofConfiguremethod. You could check ASP.NET Core Middleware