Debugging means finding and fixing the errors in VBA code. The editor lets you run step by step (F8), set breakpoints, watch variables in the Locals or Watch windows and write values with Debug.Print in the Immediate window. It helps locate where the behavior diverges from what was expected.
Example
Debug.Print "Row "; i; " value "; Cells(i, 2).Value