Debug from a stack trace
Works from the trace and the relevant source to name the most likely cause, with the check that would confirm it.
Below is a stack trace and the source it points into. Find the cause.
Return:
1. The most likely cause, in one paragraph, naming the specific line.
2. The single check that would confirm or rule it out - a log line, a value to print, a query to run.
3. The fix, as a minimal diff.
4. Other causes you considered and why they fit worse.
If the trace alone is not enough, say what else you need instead of guessing.
--- trace ---
{{trace}}
--- source ---
{{source}}Fill these in
| Placeholder | What goes here | Example |
|---|---|---|
| {{trace}} | Full stack trace | the whole trace, not the first line |
| {{source}} | Relevant source | the functions named in the trace |
Notes from the author
Section 2 is what makes this better than pasting the trace on its own. A confirmation step turns a guess into something you can test in a minute.
Tagged