I have learned that debugging is about setting breakpoints to check the values of variables.
The variables can be checked as an input, transformation, or an output.
An analogy would be that code is like a factory that receives materials, processes the materials, and a product emerges from the factory. A quality assurance expert would inspect the materials received, how they are processed, and what results from the processing.