What problem does it solve?
Debug Mode eliminates guesswork by turning ad hoc debugging into a disciplined, evidence-driven workflow that reproduces failures, captures targeted runtime data, and produces verifiable fixes and regression tests. It prevents wasted time on blind fixes, reduces fragile patches, and enforces repeatable reproduction before any code change.
Core Features & Use Cases
- Hypothesis-driven triage: Generate 3–5 ranked theories with clear evidence requirements for each.
- Commit-first reproduction: Create and commit a failing repro script or test so instrumentation can be added and safely removed.
- Instrumented logging & analysis: Add hypothesis-tagged [DEBUG-MODE] logs, capture to a file, and grep-filter results to protect context and enable precise analysis.
- Safe cleanup and verification: Use git restore to remove instrumentation, apply minimal root-cause fixes, and perform mandatory red-to-green verification with regression tests.
Quick Start
Ask the assistant to "Enter Debug Mode: create and commit a failing repro, instrument suspect paths with [DEBUG-MODE] logs, capture and analyze debug.log, reset instrumentation with git restore ., implement the fix, and verify red-to-green."