TOUGH TONGUE AI
  • Home
    LogoTOUGH TONGUE AI

    RESOURCES

    Loading...

    HomeLibraryPractical Mock · Debug a Production Error

    Practical Mock · Debug a Production Error

    Practical Mock · Debug a Production Error

    Overview

    Find and fix a production bug in a webhook service in a shared editor. Ask Theo for logs one line at a time, then add a regression test. Report after.

    Your Instructions

    Your goal: find the cause of a production bug with evidence, fix it, and leave a test that would have caught it.

    How this works (about 30 minutes)

    • Theo gives you a bug report and a small service in the shared editor.
    • Nothing is in the report beyond the symptom. Ask Theo for facts and logs; he gives one line at a time and puts log lines on the notepad.
    • Reproduce it, narrow it, fix it, then write test_regression in the file. Run the public tests from the editor.
    • A production question about your fix.
    • No hints on purpose, a few if you are stuck. Your report comes after.

    What scores well

    • Scope first: what, how many, since when, what changed
    • A reproduction before a fix
    • Reading the error before theorizing; one hypothesis at a time
    • A regression test that fails without your fix
    • Separating the cause from the trigger, and saying what you would do tonight

    Tips

    • Take Practical Coach · Debug Method first.
    • Say the hypothesis you are testing and what would rule it out.

    More in Practical Coding Interview Prep: AI Coach Edition

    • Practical Mock · Read a Codebase
    • Practical Coach · Extend a Feature
    • Practical Mock · Extend a Config Store
    • Practical Coach · Make It Fast
    • Practical Mock · Make a Slow Service Fast
    • Practical Coach · Debug a Production Error
    • Practical Coach · Hunt the Logic Bug
    • Practical Mock · Find the Logic Bug
    • Practical Coach · Debug: Races and Leaks
    • Practical Mock · Debug a Race and a Leak
    • Practical Coach · The AI-Assisted Round
    • Practical Mock · Review the Agent's Code
    View the full course (32 sessions) →