GitLab Well Architected
Cookbook navigation
Prompts / Rubber Duck Debugging with AI

Rubber Duck Debugging with AI

CollaborationDebuggingDeveloperVerifyBeginner

Explain problems systematically to reveal solutions. Always-available rubber duck debugging partner.

For GitLab Duo

prompt

I'm stuck on [PROBLEM DESCRIPTION]. Let me explain what I've tried:

[DESCRIBE YOUR DEBUGGING ATTEMPTS]

Current understanding:
[EXPLAIN YOUR CURRENT THEORY]

Can you help me think through this?

Use the prompt

Explain the problem in your own words, including the observations that don't fit your current theory. You can keep the conversation focused by testing one suggestion and bringing back its result.