Add Diagnostics Before Guessing
Instrument first, theorize second — logging with a stated plan for capturing the failure.
Intermediate1 min read
Customize
Fill these in and the prompt below updates as you type. Anything you leave blank stays as a placeholder.
Your prompt
1 placeholder leftThis bug is intermittent and I cannot reproduce it reliably. Add targeted logging around the suspected area in {{path}}, explain what each log line will tell us, and give me a plan to capture the failure. Do not change logic yet.