How I can debug my program | Debugging | Remove the error of program

Let’s have some common methods to debug them.

Syntax error:
                Compiler helps the programmer to find the error. Programmer should locate the part of program where the syntax error highlighted by compiler. Then correct the error or re-write that statement.


Logical error:
                There is very difficult to locate the logical error from the program. There is no compiler in the world which can be detecting the logical error. Because it is mistake by programmer. There are some further methods for detect the error.
Such as:
·         Dry run the program (Means to solve the program in the paper and get the result of the program)
·         Draw flow chart
·         Copy the suspected piece of codes and paste it on new file and separately test it.
·         Use calculator for test the long calculations.


Runtime error:
                A error message is displayed by which the runtime error can detect.


Comments

Popular posts from this blog

Umbrella activities in Software Engineering

Operating System | Best Definition of Opetating System