utilities/debug-error
Debugs and fixes an error, working through it systematically.
- Kind
- Prompt
- Works with
- Claude Code
- Source
- Claude Code Templates @ 72e5f237f64d
- Path
- cli-tool/components/commands/utilities/debug-error.md
- License
- MIT
- Jobs
- Debugging
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# Systematically Debug and Fix Errors Systematically debug and fix errors ## Instructions Follow this comprehensive debugging methodology to resolve: **$ARGUMENTS** 1. **Error Information Gathering** - Collect the complete error message, stack trace, and error code - Note when the error occurs (timing, conditions, frequency) - Identify the environment where the error happens (dev, staging, prod) - Gather relevant logs from before and after the error 2. **Reproduce the Error** - Create a minimal test case that reproduces the error consistently - Document the exact steps needed to trigger the error - Test in different environments if possible - Note any patterns or conditions that affect error occurrence 3. **Stack Trace Analysis** - Read the stack trace from bottom to top to understand the call chain - Identify the exact line where the error originates - Trace the execution path leading to the error - Look for any obvious issues in the failing code 4. **Code Context Investigation** - Examine the code around the error location - Check recent changes that might have introduced the bug …