Chain-of-Thought Debugger
Step-by-step code debugging prompt that asks AI to think through the problem before providing solutions
Content
Analyze the following code and error step by step: Code: ``` {{code}} ``` Error Message: ``` {{error_message}} ``` Instructions: 1. First, describe what the code is trying to do 2. Identify the exact line(s) causing the issue 3. Explain WHY the error occurs (root cause) 4. Propose 2-3 alternative fixes with trade-offs 5. Provide the corrected code Think through each step before answering.
Related Prompts
API Documentation Writer (Developer-Friendly)
Generates comprehensive, developer-friendly API documentation from endpoint specs, including descriptions, request/response examples, error codes, and SDK snippets.
Legacy Code Refactoring Plan
Creates a step-by-step refactoring plan for legacy code with risk assessment
API Documentation Generator
Generate comprehensive API documentation including endpoints, parameters, responses, and examples.
AI Debugging Chain-of-Thought Assistant
Apply systematic chain-of-thought reasoning to diagnose and fix complex bugs, with step-by-step analysis, hypothesis testing, and a clear fix with explanation.