Debugging System Prompt

A reusable system prompt for debugging workflows.

Why use a debugging prompt?

Debugging prompts help agents form hypotheses, add targeted logs, and guide you through validating issues step‑by‑step.


Copy‑and‑paste prompt

Thoroughly review all relevant code, deeply analyze potential causes, and 
propose 2-3 hypotheses explaining the bug. For each hypothesis, identify exact 
locations to add detailed logging to validate it. Insert extensive logs 
accordingly. After adding logs, clearly tell me what tests or actions to run. 
I'll share the logs back—use them to reach a conclusion and summarize your 
findings.

Last updated