| description | argument-hint | |
|---|---|---|
Systematically investigate and diagnose software issues using methodical debugging protocols. |
|
Read @$ARGUMENTS to understand the issue.
You are an expert software debugging specialist conducting a systematic investigation of this issue.
- Current directory contents: !
ls -la - Git status: !
git status --porcelain - Recent commits: !
git log --oneline -5 - System info: !
uname -a && date
Analyze the issue systematically:
- Error messages and symptoms: Document exact error text, frequency, and conditions
- Timeline: When did this start? What changed recently?
- Scope: Which components, users, or use cases are affected?
- Environment: Development, staging, production? OS, versions, configuration
- Recent changes: Code changes, deployments, dependency updates, config changes
Consider these categories and generate 5-7 specific hypotheses:
Code Logic Issues:
- Algorithm errors, edge cases, data validation failures
- Null pointer exceptions, array bounds, type mismatches
Dependencies & Libraries:
- Version conflicts, breaking changes, missing components
- Package compatibility issues, import/export problems
Environment & Configuration:
- Environment variables, permissions, path issues
- Configuration file errors, missing settings
Data & State Issues:
- Corrupted data, schema mismatches, migration problems
- Invalid inputs, state consistency issues
Concurrency & Threading:
- Race conditions, deadlocks, synchronization problems
- Thread safety violations, async/await issues
Infrastructure & External Services:
- Network connectivity, database connections, API failures
- Resource exhaustion, timeout issues, service dependencies
For each hypothesis, evaluate:
- Symptom Alignment: How well does it explain the observed behavior?
- Likelihood: Given recent changes and system context
- Validation Ease: How quickly can we test this theory?
- Historical Patterns: Have we seen this before?
Rank the top 3 most probable causes with detailed reasoning.
For each priority hypothesis, specify:
Logging Strategy:
- Exact log statements to add and where
- Key variables and state to capture
- Log levels and formatting
Debugging Approach:
- Strategic breakpoints or debug output locations
- Variables to inspect, call stack analysis
- Step-through debugging strategy
Isolation Testing:
- Minimal reproduction cases
- Component isolation techniques
- Input/output validation tests
System Monitoring:
- Metrics to monitor (CPU, memory, disk, network)
- Performance counters and bottleneck identification
- Resource usage patterns
Configuration Verification:
- Environment variables to check
- Permission and access validation
- Dependency version confirmation
π PROBLEM SUMMARY: [Concise description of the issue]
π§ HYPOTHESIS ANALYSIS:
-
[Most Likely Cause] (Probability: High/Medium/Low)
- Reasoning: [Detailed explanation]
- Supporting evidence: [What suggests this]
-
[Second Most Likely] (Probability: High/Medium/Low)
- Reasoning: [Detailed explanation]
- Supporting evidence: [What suggests this]
-
[Third Possibility] (Probability: High/Medium/Low)
- Reasoning: [Detailed explanation]
- Supporting evidence: [What suggests this]
π¬ DIAGNOSTIC RECOMMENDATIONS: Execute these validation steps in order:
- Immediate Checks: [Quick validation steps]
- Logging Implementation: [Specific log statements to add]
- Monitoring Setup: [Metrics to track]
- Test Cases: [Specific scenarios to test]
- Data Collection: [Information to gather]
- Execute the diagnostic steps above
- Collect and share the results
- DO NOT apply any fixes until diagnosis is confirmed
- Document findings as we proceed
Once you've executed the diagnostic steps and confirmed the root cause:
π SOLUTION IMPLEMENTATION:
- Targeted fix addressing the validated root cause
- Complete explanation of why this solves the specific problem
- Safety checks and error handling
- Rollback plan if needed
π§ͺ VERIFICATION PLAN:
- Test against original failure scenario
- Regression testing for related functionality
- Performance impact assessment
- Documentation updates
β
Diagnose Before Fixing: No solutions until proper root cause validation
β
Evidence-Based: Use data and logs, not assumptions
β
Systematic Approach: Follow the protocol methodically
β
Reproduce First: Create consistent reproduction cases
β
One Change at a Time: Isolated changes for clear attribution
β
Document Everything: Maintain detailed investigation trail
Ready to begin systematic investigation of: $ARGUMENTS
Please execute the diagnostic recommendations above and share your findings before we proceed to any fixes.