Debugging is the process of locating an error in the program and removing it. In the context of computers, on error is known as bug. The word bug is used for any error which prevents normal functioning of the computer/ program. Debugging a program depends on its environment in which the program is run. It depend on like the program in use and the language of the program etc.