i

ASP.Net A Complete Guide

Debugging, Diagnostics, and Error Handling

While developing any application, there is always the possibility that error can occur. It is essential that errors should be discovered at the early stage of development.  While developing a web app, VS has provided us the techniques debugging and handling the error.

Debugging:

Debugging is actually the process of finding the exact error in the application. This we can achieve by adding the break point in the code. This will help us to pause the program and provide the feature of a quick watch of output. This way is useful spicily to the developer what is happing at that code.

Below step by step, we see how we can use debugging in VS:

See in the below image that the debug option is available:

Below you can see the red dot that means you have added break point there. You can click on the "Disable All Breakpoint" and disable all the inserted break point with the single click.

 

When you start the running program, then the cursor will stop at the red dot, and you can check the execution of the application.

See the below example: