How to display errors with ASP.NET Core
asp.net-core, c#
Solution
Add the error page middleware as shown here:
app.UseDeveloperExceptionPage();
Problem
I have a fairly simple website that I am playing with using ASP.NET Core. I am running the application from the command line and the website is returning static files but I keep getting 500 errors when I attempt to make a request that should get handled by MVC. How do I see what the error is? Whether the error is displayed to the browser or logged to the console doesn't matter I just want a way to see what the error is.