You are on page 1of 1

ICT

Debugging
2nd Quarter

Debugging –
Is the process of locating and fixing or bypassing bugs (errors)
in a computer program.

“Why is debugging important?” –


• Isolate the source of the problem and fix it.
• Allows developers to uncover and eliminate any
discrepancies between the expected and actual
outcomes

COMMON TYPES OF ERRORS IN PROGRAMMING

Syntax Errors –
These are mistakes in the code structure, such as using
incorrect syntax or forgetting to close a bracket.

Logic Errors –
Mistakes in the logic of the code, which can result in the
program behaving unexpectedly or failing to produce the
desired output.

Runtime Errors –
Errors that occurs while the program is running

HOW TO AVOID ERROR IN YOUR CODE

• Familiarize yourself with the syntax and logic of the


programming language
• Carefully break down your code
• Test the code thoroughly at the unit level
• Use debugging and error-handling techniques
• Add comments in your code to easily comb through
your files
• Avoid switching context while coding to search for
links or code snippets.

Values Integration –
Debugging tools and strategies help to fix problems faster and
improve developer productivity. As a result, both software
quality and the end-user experience improve.

Debugging isn’t just about finding bugs, though it’s also about
understanding what the code does and how it works.

Ensures software quality, reduces defects, and improves user


experience.

You might also like