According to MIT's software course, what should you do first when hunting a bug?

Start playing free

  1. Rewrite the whole program
  2. Find a small, repeatable case that triggers it
  3. Add print lines everywhere at random

🔒 The answer is for AhaBulb members. Members see the answer, why it's right and the official sources for every card of Stuff Every Technology Expert Should Know, plus timed practice exams.

The first 50 cards of every test are free to play.

Play the free cards See membership

Like this card?
Play the game

References

  1. MIT 6.031 Software Construction, Reading 13: Debugging web.mit.edu/6.031/www/sp22/classes/13-debugging Checked 2026-10-10.

Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.

Test yourself in the game