Prompt #82

Back to prompts
Debugging Chain-of-Thought
Code Β· claude-3.7-sonnet
5/5
Variables
language, error, code
Tags
debug,chain-of-thought,reasoning
Source
research-2026-05-01
Use count
0
Created
2026-05-01T18:11:52.162090+00:00
Updated
2026-05-01T18:11:52.162090+00:00

Content

Debug the following {{language}} error using chain-of-thought reasoning.

Error message:
{{error}}

Relevant code:
```{{language}}
{{code}}
```

Think step by step:
1. What is the error telling us?
2. What are the most likely root causes (rank by probability)?
3. Which parts of the code could produce this error?
4. What is the minimal fix?
5. Are there related issues to prevent future recurrences?