Debug
Systematic Debugging
Binary search, divide and conquer, cause elimination—structured methodologies to find bugs.
The Transformation
Before scenario
(Coming soon)
After transformation
(Coming soon)
See It In Action
Scenario: “Why is user engagement dropping after the latest release?”
Users report 500 errors on checkout, but only on Tuesdays between 2-4pm EST
Systematic Investigation
Check if error occurs in payment service OR order service
Logs show payment service returns 200, order service throws exception
Isolate: inventory module vs pricing module vs fulfillment module
Pricing module queries external tax API that times out
Test tax API directly during failure window
Tax API has scheduled maintenance Tue 2-4pm - returns 503
External tax API weekly maintenance window not accounted for in integration design.
Add circuit breaker with cached tax rates fallback. Alert on tax API degradation.
When to Use Debug
- 1Investigating production issues methodically
- 2Finding root causes of complex bugs
- 3When trial-and-error isn't working
- 4Performance bottleneck identification
- 5Regression debugging after updates
Works Well With
Pro tip: Chain Debug with Trace → Hypothesis for comprehensive analysis.
Ready to use Debug?
Add Think to your AI assistant in one command
npx @anthropic-ai/claude-code mcp add think-mcp