Bug hunt: list by trigger condition
Give repro steps, impact scope, and the smallest fix
Prompt
Copy it whole, then replace the brackets with your own contentHandle this coding task: Bug hunting: list by trigger condition. Code/error: [paste] Environment: [language/version/framework] Requirements: Give repro steps, impact scope, and the minimal fix. Give your assessment first, then the change, then how to verify it.
Replace the text in [ ] with your own situation; ask long tasks in stages.
How to get better results
Read this before you fill it inFor intermittent bugs you can partly reproduce.
Give the conclusion and impact scope first, then only the changed snippets (no full files), and finally one check that proves it works. Flag risky spots separately.
The user list is occasionally one row short, starting from page 2, sorted by creation time. Database is MySQL.
No reproduction frequency, the fix is skewed No sort or pagination specified, can't find the root cause Treating "intermittent" as always-on
If problems remain after the fix, paste the new error and the changed snippet back; keep debugging on the original approach, don't switch approaches and rewrite.
More like this: Writing code prompts · All prompts