12 Troubleshooting your application
This chapter covers
- Understanding the nature of an exception
- Using StatusCodePages middleware to control the display of client error messages
- Implementing logging within a Razor Pages application
By now, you’ve probably written a fair amount of code as you have worked your way through the chapters. Chances are you have encountered an error or two while doing so. Some of these will be compile-time errors your development tool will have caught, so you can fix them as you work. Others will have surfaced only at run time, raising exceptions that result in an error page of some kind being displayed. As you build more complex applications, other types of errors creep in: logical errors. These kinds of errors won’t ...
Get ASP.NET Core Razor Pages in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.