Debugging prompt builder
Ask an LLM to “look at this error” and you often get a paragraph explaining what the error means — not a fix. The debugging prompt builder structures your error message, stack trace, code, and expected-versus-actual behavior into a prompt that forces the model through a real debugging procedure and returns a specific, paste-ready fix.
How it works
You pick the language and fill in whatever context you have: the error message, the stack trace, the relevant code, and a short statement of what you expected versus what happened. The tool assembles a prompt that tells the model to work in order — restate the bug, pinpoint the root cause with line references, explain why it produces the symptom, provide corrected code ready to paste, and list the edge cases the fix now covers and how to verify it. Empty fields are omitted automatically. It all runs locally; no API key is required.
Tips and notes
- Include the full stack trace. The top frame is the symptom; the frames below it usually point at the cause.
- State expected versus actual. This is what separates “fixed the crash” from “fixed the behavior” — give the model the real target.
- Trim the code to what matters. Paste the function plus anything it calls that could be implicated, not the whole file.
- Use it to write a failing test next. Once the model names the root cause, pair this with the test-generation builder to lock the fix in place.