You may be familiar with the excellent ASP.NET package called Error Logging Modules and Handlers (ELMAH), used to catch unhandled exceptions (http://elmah.github.io/). ELMAH is great for existing applications, as you can drop it into a live-running web app. However, it's preferable to have error logging built into your software from the start.
Unfortunately, ELMAH does not yet support ASP.NET Core, but there is a similar package called Error Logging Middleware (ELM). Adding this to your web application is just as simple as installing Glimpse, but it doesn't have all the features of ELMAH. ELM isn't really suitable for production use, but it can still be useful locally to aid debugging.
First, add the Microsoft.AspNetCore.Diagnostics.Elm ...