Troubleshoot production errors
Help me troubleshoot a production error. Known material: [error log or stack trace], [related code], and [runtime and versions], for [the developer fixing it]. Restate the symptom and trigger conditions, lay out a debugging order with ways to verify each step, then give the fixed code with comments. Do not invent call paths or assume you can see the whole codebase.
Open this template in the optimizer →
Placeholders to fill in
- error log or stack trace
- related code
- runtime and versions
- the developer fixing it
Placeholders stand for your own facts. Never invent figures, sources or credentials the model was not given.
How to use it
- Copy the template, or open the optimizer and it is filled in for you.
- Replace every placeholder in brackets with your own material.
- Add constraints such as length, audience, tone, and what must not change.
- Generate, then refine in three directions and copy the result.
Adapted from LobeHub agent “代码优化/错误修改” by alphandbelt (MIT)
More coding goals
Browse other tasks
Canonical version: https://www.prompt.dx3906.net/zh/templates/coding/purpose-troubleshoot-online-error