Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 739 Bytes

File metadata and controls

19 lines (11 loc) · 739 Bytes

1. Debugging

Bugs are mistakes in programs that cause them to behave differently than intended.

Debugging is the process of finding and fixing those bugs.

1.1. Print Statement Debugging

  • the process in which we tell our application with printf or any other similar statements in other languages, to generate output while the program is executing.
  • the output generated helps diagnose issues within the program.

1.2. Debugger

  • is a tool built into VS Code, which will walk through the program step-by-step.

1.3. Rubber Duck Debugging

  • the technique where we explain the code to a rubber duck or any other inanimate object.
  • by talking through the code out loud, we might realize the mistake.