MeowdoroDownload
← Blog

Work guides

A Pomodoro workflow for debugging without losing your place

Suppose your own monthly report adds up correctly on screen but drops the final row from a CSV export. Spend one interval finding the first place where the expected and actual outputs differ.

Trace one missing row
  • InputThree rows with distinct amounts.
  • CheckpointCount the rows entering the writer.
  • OutputCount the rows in the saved file.

Make the example small enough to inspect

Use a local copy with three ordinary rows and distinct amounts. Write down the expected total and the number of exported rows before changing code. Compare what the report has before export with what the CSV writer receives. If the third row is present in both, read the saved file itself.

Keep a record of what the test settled

At the bell, write three lines covering the input you used, the last correct value and the next comparison. For example, “Three rows enter the writer. Only two appear in the saved file. Next check the final write.” That note saves you from repeating the early checks after lunch.

Once the cause is fixed, try both the small example and the original report. Save the example if it will help catch the same mistake later.