Friday, 25 November 2011

Breakpoints: Debugging in ASP.NET

Breakpoints, are places in the code of a program, where the debugger wills stop the execution of the application. It then displays the state of the application’s variables, and then the ASP.NET programmers can step through the code. Breakpoints have many sound features and properties. Using these features, one can control and modify the behavior of the breakpoint. These properties are ‘Hit Count’, ‘Condition’, ‘Action’, and ‘Filter’.


Advantages of Breakpoints:

    As they are not actually the statements in the code, they produce no extra code, and also do not change the size of the code file.
    A breakpoint can be set/disabled without alteration in the source code.
    Breakpoints are not actual source code one has to add to the program. It is something to be typed.
    One can manage all the breakpoints from the ‘Breakpoints’ window. This window can be displayed by clicking the ‘Debug/Windows/Breakpoints’ from the main menu.
    They give you ability to pause the execution of the program at any point, and then one can run the program line by line.

No comments:

Post a Comment