Debugging is the process of finding and fixing errors in a program. It consists of reproducing the problem, reading the error message, forming a hypothesis, isolating it (prints, breakpoint, debugger), fixing, then verifying with a test. You look for the cause, not just the symptom.
Example
print(f'{valeur=}') # inspect a variable to locate a bug