TryBugHunt

Debugging roadmap

Most bugs are one of eight shapes. Work through them in this order, and each box fills in as you fix its challenges. Start wherever your boxes are emptiest.

  1. Stage 1

    Read the error

    Bugs that crash with a message. Learn to trust the traceback.

  2. Stage 2

    Follow the logic

    The code runs and gives the wrong answer, or never stops.

  3. Stage 3

    Track the state

    Which variable is this, and who else is holding it?

  4. Stage 4

    Mind the timing

    Things that happen in the wrong order. Interview favourites.

New to all of this? The 30 Days of Debugging path picks one bug a day for you. Want the theory behind a box? Each one links to its bug pattern guide.