1 · MindsetObserve Before You Touch
All courses
Debug dojo

Off-by-one in range

Expected: Print 1..5

The debugging loop

  1. Run and capture output / errors.
  2. Diff against expected behavior.
  3. Name the layer (logic, types, state, async…).
  4. Change one thing, re-run.

Use Ask the tutor when stuck — it will question before hinting.

Socratic tutor

Asks before it hints — won’t dump the full fix early

Run the broken starter, then open with the tutor.

Output
Press Run to execute your code.