CodingFree→ Claude / ChatGPT / Cursor
Debug From a Stack Trace
Systematic root-cause analysis from an error, logs and the relevant code.
What you get: Ranked hypotheses, how to confirm each, and the minimal fix.
Help me debug this issue in a {{stack}} application.
Symptom: {{symptom}}
What I expected: {{expected}}
Error / stack trace:
{{stack_trace}}
Relevant code:
{{code}}
Recent changes: {{recent_changes}}
Respond with: (1) the most likely root cause and why, citing the exact lines; (2) two alternative hypotheses ranked by likelihood; (3) for each, the quickest experiment (log line, test, query) to confirm or eliminate it; (4) the minimal fix for the top hypothesis as a diff; (5) a regression test that would have caught it; (6) one question for me if the information is insufficient. Do not guess at code you cannot see.