Use the prompt
Describe the ordering you expected and what happened instead. Logs or a small reproduction help Duo reason about timing rather than only the code's usual execution path.
Identify race conditions in asynchronous code. Debug intermittent failures systematically.
For GitLab Duo
I have an intermittent bug:
[DESCRIBE SYMPTOMS]
Code with async operations:
[PASTE CODE]
Help me:
1. Identify potential race conditions
2. Explain the timing issue
3. Suggest synchronization approach
4. Recommend testing strategyDescribe the ordering you expected and what happened instead. Logs or a small reproduction help Duo reason about timing rather than only the code's usual execution path.