11 Networks 12 The Internet, e-mail 13 Web & web design 14 Programming 15 Viruses & data security

Navigation

14  Programming

Debugging

Is the technique of detecting and correcting errors (or bugs) which may occur in a program. To debug a program or hardware device is to start with a problem, isolate the source of the problem, and then fix it.


There are three main types of errors:

  • System errors

    affect the computer as a whole or its peripherals. It can make the computer stop working altogether and you will have to restart it.

  • Syntax errors

    are mistakes in the programming language, for example typing errors, errors in sequence of characters. The program does not run.

  • Logic error

    is a bug in a program that causes it to operate incorrectly, but not to terminate abnormally (or crash). A logic error produces unintended or undesired output or other behavior, although it may not immediately be recognized. Unlike a program with a syntax error, a program with a logic error is a valid program in the language, though it does not behave as intended. The only clue to the existence of logic errors is the production of wrong solutions.


© Střední průmyslová škola elektrotechniky a informatiky, Ostrava, příspěvková organizace