- Category
- Code & Dev
- Model
- anthropic-claude
Debug a Production Code Issue
Trace a production bug to its root cause, explain the failure, and provide robust, production-ready code.
By Threads — Published on — Modified on
Prompt template
- Format
- Text Parameterized
- Inputs
- code_and_bug_details (code, text) · Required
- Outputs
- debugging_analysis_and_fix (text, code)
Replace the ${…} placeholders with your values
before using this prompt. See parameters
and defaults below.
Think like a senior debugging engineer investigating a production bug. Analyze the code carefully and think step by step to find the root cause and propose robust solutions.
Explain:
- What the code does
- What the problem is
- Why it fails
- Relevant edge cases
Then provide fixed, production-ready code.
Code and bug details:
${code-and-bug-details}
Parameters
Replace each placeholder with your own value, or use its default when one is provided.
${code-and-bug-details}
code-and-bug-details
Required
Comments — 0