Intermittent Bug Investigation Plan

An investigation plan for a bug that disappears when you try to observe it.

Advanced · Works with ChatGPT, Claude, Gemini, Copilot

The prompt

This bug seems to change behavior when I try to observe it.

What it does and where it's been seen:
{{BUG_DESCRIPTION}}

What I've tried so far and how it responded:
{{ATTEMPTS}}

List the plausible causes for observation-sensitivity (timing, resource contention, instrumentation overhead, environment differences) ranked by likelihood given this evidence. For each, propose a way to gather more signal that's unlikely to change the behavior itself. Say plainly if the evidence so far doesn't support ruling anything in or out yet.

Why this prompt works

Naming observation-sensitivity explicitly stops the model from proposing the usual add-more-logging fix that makes this class of bug worse.

How to customize it

  • Mention exactly how each debugging attempt changed (or didn't change) the bug's frequency
  • Note any concurrency or async code near the symptom

Common mistakes

  • Assuming it's 'random' rather than sensitive to a specific factor
  • Adding heavy logging everywhere, which can mask the real timing issue

Example

Input

Bug description: Payment worker occasionally double-processes a job, only under load

What a good answer looks like

A ranked list of causes with a low-interference way to test each one.

Make this prompt fit your work

ModelCoach.ai scores your version, shows what to improve and explains why, right inside ChatGPT, Claude, Gemini and Copilot.

Related prompts