Debugging
Debugging Blazor Server Right-click on MyBlogServerSide and click Set As Startup project. Press F5 to start the project. Using the web browser, navigate to https://localhost:5001/ throwexception (the port number may vary). Press F12 to show the web browser developer tools. In the developer tools, click Console. Click the Throw exception button on our page. Press F5 to continue and switch back to the web browser. We should now be able to see the exception message in the developer tools. Now let's try a breakpoint: In Visual Studio, open MyBlog.Shared/Pages/Index.razor. Anywhere in the LoadPosts method, set a breakpoint by clicking the leftmost border (making a red dot appear). We can also add a breakpoint by pressing F9. Go back to the web browser and navigate to https://localhost:5001/ (the port number may vary). Visual Studio should now trigger the breakpoint, and by hovering over the variables, we should be able to observe their current values. Debugging Blaz...