Written by the Fiveable Content Team โข Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated August 2025
Definition
Debugging is the process of finding and fixing errors or bugs in a computer program. It involves identifying and resolving issues that prevent the program from running correctly.
Syntax Error: A syntax error occurs when there is a mistake in the structure or grammar of a program, causing it to fail during compilation.
Runtime Error: A runtime error happens when a program runs into an issue while executing, such as dividing by zero or accessing an invalid memory location.
Logic Error: A logic error occurs when a program runs without any errors but produces incorrect results due to flawed reasoning or faulty algorithms.