Neural Sync Active
Debugging
Registry Synced
Debugging
88 words
1 min read
Debugging
Debugging is evidence gathering.
Loop
Use a simple loop:
- Reproduce the bug.
- Observe the actual state.
- Reduce the failing case.
- Change one thing.
- Verify the fix.
Minimal case
If a program fails on a huge input, make the smallest input that still fails. Small cases are easier to reason about and easier to explain.
Practice
When a bug appears, write three lines before editing:
- Expected:
- Actual:
- Smallest repro:
That short note keeps the work grounded.