Rubber Duck Debugger

Explain your code bug out loud to AI and let it help you find the answer.

The Prompt

I'm going to explain my code problem to you like a rubber duck — just by describing it out loud. Please listen, ask clarifying questions if needed, and help me think through where the bug might be without immediately giving me the answer. Here's my problem: [describe issue]
Share

Try with AI

Open this prompt in:

Why This Prompt Works

Rubber duck debugging is a real technique where explaining code aloud forces you to spot issues. AI as rubber duck adds the ability to ask smart questions.

How to Use It

Replace [describe issue] with your bug description. Describe what you expected to happen, what's actually happening, and walk through your code logic step by step.

Prompt Variations

1

"Be my pair programmer. I'll explain my approach and you spot logical flaws"

2

"Ask me 5 questions about my bug that will help me find it myself"

3

"Play devil's advocate and challenge every assumption in my code design"

4

"Be a senior developer reviewing my code approach — what would you question?"

View all