General Debug
- Reproduction:
- Can you write a test case that fails?
- If not, create a minimal reproducible example (MRE).
- Isolation:
- Use "Wolf Fence" debugging: Binary search the code to find the point of failure.
- Insert
dbg!()macros (better thanprintln!).
- Resolution: - Once isolated, fix the logic. - Remove all
dbg!()calls before final commit.