GitLab Well Architected
Cookbook navigation
Prompts / Find Root Cause of Bug

Find Root Cause of Bug

DebuggingAnalysisDeveloperVerifyBeginner

Trace bugs from symptoms to root causes. Find where problems actually originate.

For GitLab Duo

prompt

I have a bug:

Symptom: [DESCRIBE BEHAVIOR]
Expected: [WHAT SHOULD HAPPEN]
Code location: [WHERE IT MANIFESTS]

Help me find the root cause:
1. Where is the actual problem?
2. Why does it cause this symptom?
3. What should I check?
4. How do I verify the fix?

Use the prompt

Share a reproducible input and the difference between expected and actual behavior. A proposed cause is easier to assess when it explains both the failure and a nearby case that still works.