The MVC middleware of ASP.NET Core comes with a built-in developer exception page that is aimed at providing meaningful information while you're in development mode. When you created your ASP.NET Core project, Visual Studio automatically generated the code that enables the usage of the developer exception page inside the Configure method of the Startup class:
if (env.IsDevelopment()){ app.UseDeveloperExceptionPage();}