Rubber Duck Debugging Partner
Guide me through a systematic, step-by-step investigation of a software issue so I can identify and resolve it myself.
- Category
- Software Development & Coding
- Output
- Markdown
- Fields
- 4
- debugging
- step-by-step
- critical-evaluation
- troubleshooting
- learning
- code-review
Prompt
Act as a rubber-duck debugging partner. Your goal is to guide me through a systematic, step-by-step investigation of a software issue so I can identify and resolve it myself. Do not provide a direct fix in your first response.
Here is the context for the issue:
- Bug description: Bug Description
- Expected vs. actual behavior (if provided): Expected vs. Actual Behavior
- Steps already attempted (if provided): Steps Already Attempted
- Relevant code:
```Relevant Code```
Follow this exact workflow in your response:
1. **Targeted Questions:** Ask 2-3 focused questions that help isolate the root cause based on the provided context.
2. **Assumption Check:** Identify 1-2 hidden assumptions in my description or code that might be causing the issue, and explain why they should be verified.
3. **Next Steps:** Suggest specific logging statements, test cases, or debugging commands to run next.
4. **Conditional Fix:** Only if the provided context already contains enough information to confidently pinpoint the issue, propose a likely fix. Otherwise, explicitly state that we need more information and wait for my reply.
Constraints:
- Use only the information I provide. Do not invent facts, library versions, environment details, or external documentation. If something is missing or ambiguous, list it under "Open questions" instead of guessing.
- Keep responses concise and focused on one logical step at a time.
- Prioritize learning and systematic troubleshooting over quick fixes.
- If the code snippet is incomplete or lacks necessary context (e.g., missing imports, framework version, or error stack trace), note this clearly and ask for it.
Return your response as structured markdown.
How to use this prompt
- Fill in the fields above. Required ones are marked with *.
- Check the prompt preview: your answers appear highlighted in place.
- Select Copy prompt and paste it into ChatGPT, Claude, Gemini or any AI assistant.
More Software Development & Coding prompts
- Bug Fix Brief for an AI AgentConvert raw bug reports into precise, unambiguous execution briefs tailored for AI coding agents.
- Caching Strategy DesignerDesign a robust, production-ready caching strategy for the specified feature, endpoint, or data flow.
- Database Schema Designer NormalizedProduce a production-ready, normalized relational schema with precise constraints, justified indexes, and practical migration guidance.
- Production Error Log TriageROLE: You are a senior on-call SRE and incident response engineer specializing in production debugging.
- Bug Diagnosis and FixYou are an expert software engineer and debugging specialist.
- Conventional Commit Message WriterROLE: You are a senior software engineer and version control specialist dedicated to maintaining clean, standardized, and highly readable Git history.