Use the prompt
Include the full stack trace and the code around the first relevant application frame. What happened immediately before the error often helps distinguish the underlying problem from the place it finally surfaced.
Parse complex stack traces to identify error origins and suggest fixes.
For GitLab Duo
Explain this stack trace:
[PASTE STACK TRACE]
Tell me:
1. Where did the error originate?
2. What caused it?
3. Which function should I look at first?
4. How do I fix it?Include the full stack trace and the code around the first relevant application frame. What happened immediately before the error often helps distinguish the underlying problem from the place it finally surfaced.