Develop code - EdexcelDealing with errors - debugging
Programs must run correctly or they are of little value. The careful planning and testing of a program is essential, as is writing maintainable code which assists future updating.
When an error or bug has been identified, it needs to be corrected. Errors can often be fixed when program code is being written, and IDEIntegrated development environment - a piece of software used to write computer programs. usually provide debugThe process of removing errors from a program. tools which help identify these errors.
Typical tools are:
Single-step - programmers can step through the program one instructionA single action that can be performed by a computer processor. at a time. The values of variableA memory location within a computer program where values are stored. can be seen as they are processed and errors identified.
Set break points - when the program is halted and the programmer can investigate the values of variables in the previous instructions. This is useful when the programmer suspects that the error is in a section of the program.
Watchers - enable the programmer to watch for things like variables and program flow.
Be sure to be familiar with the debugging tools in the programming language used.