Troubleshoot production errors

GoalCoding · Trace production errors and propose verified fixes.

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

  1. Copy the template, or open the optimizer and it is filled in for you.
  2. Replace every placeholder in brackets with your own material.
  3. Add constraints such as length, audience, tone, and what must not change.
  4. 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