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.